Install binary zipped R package via command line

前端 未结 3 2006
青春惊慌失措
青春惊慌失措 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条回答
  •  -上瘾入骨i
    2021-02-04 01:12

    An alternative for newbies like me that is hassle free would be:

     install.packages(file.choose(), repos=NULL)
    

    The file.choose() command will show a window allowing you to choose the .zip file or the tar.gz file where you downloaded it. This command is very useful when you don't have enough rights on a Windows machine and run R from a flash drive like myself.

    It is also useful before running this command to RENAME the zip file you are going to install into the package name that you intend to use.

提交回复
热议问题