Installing older version of R package

前端 未结 7 1549
梦毁少年i
梦毁少年i 2020-11-22 11:06

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

相关标签:
7条回答
  • 2020-11-22 12:02

    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.

    0 讨论(0)
提交回复
热议问题