I am trying to use Rpy2 and ggplot2 but I get an error. After some searching for the error online, I found that the error occurs because there are changes in the ggplot2 pac
The remotes
package offers an install_version
function that can do this directly.
require(remotes)
install_version("ggplot2", version = "0.9.1", repos = "http://cran.us.r-project.org")
Previously, this answer pointed to the devtools
package, which also re-exports the install_version
function. Thanks @MichaelChirico for pointing out that the remotes
package is preferable.