R中不同版本的GlobalOptions包

时间:2018-05-09 21:52:56

标签: r version updates install.packages circlize

我试图安装软件包" 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'不可用

     

命名空间&#39; GlobalOptions&#39;正在加载0.0.11,但需要> = 0.0.12

当我运行 sessionInfo()时,我会看到&#34;其他附加软件包&#34;:[1] GlobalOptions_0.0.11

我最好的猜测是我有错误的GlobalOptions版本 - 我看到GlobalOptions v0.0.13可用here,但对R来说是新手,我不知道现在要做什么获得正确的版本并运行。

如果有人能告诉我下一步应该在哪里,我真的很感激。 (我仔细查看了该链接中的文档,但我现在还不知道该怎么做。)谢谢!

1 个答案:

答案 0 :(得分:1)

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

  • 从CRAN安装GlobalOptions_0.0.13

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

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

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