Install package without internet: error in install.packages: no such file or directory

前端 未结 1 1426
春和景丽
春和景丽 2020-12-22 01:53

I\'m trying to install the readr package in R on a laptop without internet connection using the install.packages(\"C:/Users/MVC/Desktop/readr-master.zip\", repos=NULL)

相关标签:
1条回答
  • 2020-12-22 02:00

    This package is available as tar.gz or .zip file from cran download it to your directory.

    https://cran.r-project.org/web/packages/readr/index.html and this should work. It worked for me

        install.packages("C:/Program Files/R/R-3.3.0/library/readr_0.2.2.zip",
        repos = NULL, type="source")
    

    Please make sure that the path is correct.

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