我最近将我的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
有人可以为我提供这个问题的解决方案吗?
答案 0 :(得分:0)
您可能正在运行与您尝试安装的软件包不兼容的R版本。您需要更新R才能使此程序包正常工作。
通过运行软件确保您的Mac OS X系统是最新的 来自" apple"的更新屏幕左上方的菜单。
从这里安装R:
http://rweb.quant.ku.edu/cran/bin/macosx/R-3.1.3-mavericks.pkg
然后在您的终端尝试安装软件包:devtools::install_github("dvanclev/GTrendsR")