1

我正在尝试安装“circlize”包,但我无法解决看似简单的错误。

当我运行时:

install.packages("circlize")

它说:

Installing package into ‘*file location*/3.2’
(as ‘lib’ is unspecified)
Warning in install.packages :
  dependency ‘GlobalOptions’ is not available

  There is a binary version available but the source version is later:
         binary source needs_compilation
circlize 0.3.10  0.4.3             FALSE

installing the source package ‘circlize’

trying URL 'https://mirrors.sorengard.com/cran/src/contrib/circlize_0.4.3.tar.gz'
Content type 'application/x-gzip' length 2456906 bytes (2.3 MB)
downloaded 2.3 MB

* installing *source* package 'circlize' ...
** package 'circlize' successfully unpacked and MD5 sums checked
** R
** demo
** inst
** preparing package for lazy loading
Error in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]) : 
  namespace 'GlobalOptions' 0.0.11 is being loaded, but >= 0.0.12 is required
ERROR: lazy loading failed for package 'circlize'
* removing '*file location*/3.2/circlize'
Warning in install.packages :
  running command '"*file location*/x64/R" CMD INSTALL -l "*file location*\3.2" *file location*/downloaded_packages/circlize_0.4.3.tar.gz' had status 1
Warning in install.packages :
  installation of package ‘circlize’ had non-zero exit status

The downloaded source packages are in
    ‘*file location*\downloaded_packages’

这些部分似乎与我最相关:

依赖 'GlobalOptions' 不可用

名称空间 'GlobalOptions' 0.0.11 正在加载,但 >= 0.0.12 是必需的

当我运行sessionInfo()我在“其他附加包”下看到:[1] GlobalOptions_0.0.11

我最好的猜测是我有错误的 GlobalOptions 版本——我看到 GlobalOptions v0.0.13 在这里可用,但是作为 R 的新手,我不确定现在该怎么做才能让正确的版本启动并运行。

如果有人能告诉我下一步应该看哪里,我将不胜感激。(我查看了该链接中的文档,但我仍然不知道现在该做什么。)谢谢!

4

1 回答 1

2

如果你有 R 版本>=3.3.0,你应该

  • GlobalOptions_0.0.13从 CRAN安装

    install.packages("GlobalOptions")
    
  • 退出并重新启动 R

  • circlize像以前一样从源重新安装。

如果您有较旧的 R 版本,请先将 R 更新到较新的版本。

于 2018-05-09T22:11:43.017 回答