在 R 中安装 SPEI 包时出错

Error installing SPEI package in R

我正在尝试在 Rstudio 中安装 SPEI,版本 1.1.414,运行 Windows 7。但是,我在控制台中收到以下错误消息:

install.packages("SPEI") Installing package into ‘C:/Users/xxx/Documents/R/win-library/3.2’ (as ‘lib’ is unspecified) Warning in install.packages : dependency ‘goftest’ is not available also installing the dependency ‘lmomco’

似乎这个 "goftest" 包不可用,我该如何继续?

谢谢。

'goftest' 文档说

Depends R (>= 3.3)

所以您可能应该升级到更高版本的 R 才能使用该软件包:https://cran.r-project.org/web/packages/goftest/goftest.pdf