简体   繁体   中英

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

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?

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM