0

我最近将我的 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

有人可以为我提供解决此问题的方法吗?

4

1 回答 1

0

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

于 2015-04-11T04:42:28.957 回答