我最近将我的 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
有人可以为我提供解决此问题的方法吗?