Installing older version of R package

前端 未结 7 1740
梦毁少年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 11:56

    Found a good solution, which worked for me (the details are at the link).

    Command in "repmis" library:

    # Install old versions of the e1071 and gtools packages.
    
    # Create vectors of the package names and versions to install
    # Note the names and version numbers must be in the same order
    Names <- c("e1071", "gtools")
    Vers <- c("1.6", "2.6.1")
    
    # Install old package versions into the default library
    InstallOldPackages(pkgs = Names, versions = Vers)
    

提交回复
热议问题