简体   繁体   English

在Windows中的R中安装ncdf和clim.pact软件包

[英]Installation of ncdf and clim.pact packages in R for windows

Hi I need to instal the clim.pact package in R but it is not available in CRAN anymore. 嗨,我需要在R中安装clim.pact软件包,但CRAN中不再可用。 From this link I learnt that I have to download and install the ncdf package first but this is not available in CRAN either and I should download it from here . 通过此链接,我了解到必须首先下载并安装ncdf软件包,但是CRAN中也不提供此软件包,因此应从此处下载。 Does anyone knows how to install those? 有谁知道如何安装那些?

Well, one really easy way is to use devtools with the github cran repository: 好吧,一种非常简单的方法是将devtools与github cran存储库一起使用:

devtools::install_github("cran/ncdf")
devtools::install_github("cran/clim.pact")

You could also download the tar.gz file and then install the packages locally using the remotes package: 您还可以下载tar.gz文件,然后使用remotes软件包在本地安装这些软件包:

remotes::install_local("path/to/archive.tar.gz")

Unfortunately, neither strategy worked for installing on R 3.5.2. 不幸的是,这两种策略都无法在R 3.5.2上安装。 Try this with the last known version of R that netcdf was released for. 尝试使用netcdf发行的R的最后一个已知版本。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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