问题描述
我正在尝试使用install.packages("C:/Users/MVC/Desktop/readr-master.zip", repos=NULL)
命令,但我不断收到相同的错误:
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?
推荐答案
此软件包可以从cran中以tar.gz或.zip文件的形式获得.将其下载到您的目录.
This package is available as tar.gz or .zip file from crandownload it to your directory.
https://cran.r-project.org/web/packages/readr/index.html 这应该工作.它对我有用
https://cran.r-project.org/web/packages/readr/index.htmland 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")
请确保路径正确.
这篇关于在没有互联网的情况下安装软件包:install.packages中的错误:没有这样的文件或目录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!