My package doesn't work for R 2.15.2

前端 未结 3 619
说谎
说谎 2020-12-19 18:14

I have a package called rpackage on a local (corporate) repo. When I run install.packages(\"rpackage\") it tells me that:

Installin         


        
3条回答
  •  情话喂你
    2020-12-19 18:58

    I am not sure if imanuelc's solution will work for everyone, as it did not work for me:

    > options(install.packages.check.source = FALSE)
    > install.packages("rstudio", lib="C:/Program Files/R/R-2.15.2/library", dep=TRUE)
    Warning in install.packages :
    package ‘rstudio’ is not available (for R version 2.15.2)
    

    In my case I've seen this error come and go for certain packages such as tm, rjson, etc. I know that there is a version of all of this packages for R 2.15 because most of them actually come with my IDE and I'm just trying to make them install into a particular directory (and I want the install.packages statement there for future coders with different IDE's).

    I can't say that I know the root cause, but for me the work around is downloading the binaries directly from a mirror and installing them "manually" in the code.

提交回复
热议问题