Install binary zipped R package via command line

前端 未结 3 2004
青春惊慌失措
青春惊慌失措 2021-02-04 00:36

I am trying to install zipped binary R packages via command line on a windows 7 machine with

R CMD INSTALL packagename

but it doesn\'t work. I

3条回答
  •  一生所求
    2021-02-04 00:59

    An addition to @moldovean's answer: I used to save the zipped file(copy from temp to a R download folder for future reference). When I updated R from 2.15.1 to 3.0.1, I run these commands for easy installation:

    setwd("C:/Downloads/R Packages");
    packages<-dir();
    install.packages(x, repos=NULL) #where x is the name of package
    

    And R installed all packages automatically from zipped files. Now I can update all of them with one command only(google it)

提交回复
热议问题