Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
1.1k views
in Technique[技术] by (71.8m points)

r - 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?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

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.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...