无法安装和加载包

 dafeige 发布于 2023-01-01 06:29

我最近将R和Rstudio下载到了我的电脑上.

当我尝试安装包ncdf(或任何包)时,我收到以下消息:

> install.packages("ncdf")
Installing package into ‘C:/Users/Talos/Documents/R/win-library/3.1’
(as ‘lib’ is unspecified)
trying URL 'http://cran.rstudio.com/bin/windows/contrib/3.1/ncdf_1.6.7.zip'
Content type 'application/zip' length 358300 bytes (349 Kb)
opened URL
downloaded 349 Kb

package ‘ncdf’ successfully unpacked and MD5 sums checked

The downloaded binary packages are in
    C:\Users\Talos\AppData\Local\Temp\RtmpKuMfwR\downloaded_packages

> load("ncdf")
Error in readChar(con, 5L, useBytes = TRUE) : cannot open the connection
In addition: Warning message:
In readChar(con, 5L, useBytes = TRUE) :
  cannot open compressed file 'ncdf', probable reason 'No such file or directory'

我试过去文件夹并手动解压缩文件,这似乎没有任何区别.

解决方案是什么,以便我可以安装,加载和使用包?

1 个回答
  • library不想要load.请阅读帮助文件? library,并? load为进一步的信息.

    2023-01-01 06:57 回答
撰写答案
今天,你开发时遇到什么问题呢?
立即提问
热门标签
PHP1.CN | 中国最专业的PHP中文社区 | PNG素材下载 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有