问题
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