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

落爺英雄遲暮 提交于 2019-11-28 11:52:07

问题


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) command, but I keep getting the same error:

error in install.packages : cannot open file 'C:/Program Files/R/R-3.3.0/library/file27f07de57168
/readr-master/R/POSIXct.R': No such file or directory

Anybody who know why this is or how I can install the package without an internet connection?


回答1:


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.



来源:https://stackoverflow.com/questions/37526286/install-package-without-internet-error-in-install-packages-no-such-file-or-dir

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!