将MacOS升级到Yosemite后无法安装R软件包

时间:2015-04-10 22:28:50

标签: r install.packages

我最近将我的MacOS升级到了Yosemite,然后面临各种软件包的R问题。

> $ devtools::install_github("dvanclev/GTrendsR")

> Downloading github repo dvanclev/GTrendsR@master
Installing GTrendsR
Installing dependencies for GTrendsR:
googleVis
--- Please select a CRAN mirror for use in this session ---
Error: .onLoad failed in loadNamespace() for 'tcltk', details:
  call: dyn.load(file, DLLpath = DLLpath, ...)
  error: unable to load shared object '/Library/Frameworks/R.framework/Versions/3.1/Resources/library/tcltk/libs/tcltk.so':
  dlopen(/Library/Frameworks/R.framework/Versions/3.1/Resources/library/tcltk/libs/tcltk.so, 10): Library not loaded: /usr/X11/lib/libXft.2.dylib
  Referenced from: /usr/local/lib/libtk8.6.dylib
  Reason: image not found

有人可以为我提供这个问题的解决方案吗?

1 个答案:

答案 0 :(得分:0)

您可能正在运行与您尝试安装的软件包不兼容的R版本。您需要更新R才能使此程序包正常工作。