本文介绍了无法安装flextable的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在安装Flextable
时遇到问题,这似乎是由于gdtools
软件包引起的.看起来gdtools
依赖于.dylib文件?有什么想法吗?
I'm having an issue installing Flextable
, and it seems to be because of the gdtools
package. It looks like gdtools
relies on a .dylib file? Any ideas?
> install.packages("flextable")
There is a binary version available but the source version is later:
binary source needs_compilation
flextable 0.4.0 0.4.2 FALSE
installing the source package ‘flextable’
trying URL 'https://cran.rstudio.com/src/contrib/flextable_0.4.2.tar.gz'
Content type 'application/x-gzip' length 135276 bytes (132 KB)
==================================================
downloaded 132 KB
Warning in strptime(xx, f <- "%Y-%m-%d %H:%M:%OS", tz = tz) :
unknown timezone 'default/Australia/Melbourne'
* installing *source* package ‘flextable’ ...
** package ‘flextable’ successfully unpacked and MD5 sums checked
** R
** inst
** preparing package for lazy loading
Error in dyn.load(file, DLLpath = DLLpath, ...) :
unable to load shared object '/Library/Frameworks/R.framework/Versions/3.4/Resources/library/gdtools/libs/gdtools.so':
dlopen(/Library/Frameworks/R.framework/Versions/3.4/Resources/library/gdtools/libs/gdtools.so, 6): Library not loaded: /opt/X11/lib/libcairo.2.dylib
Referenced from: /Library/Frameworks/R.framework/Versions/3.4/Resources/library/gdtools/libs/gdtools.so
Reason: image not found
ERROR: lazy loading failed for package ‘flextable’
* removing ‘/Library/Frameworks/R.framework/Versions/3.4/Resources/library/flextable’
Warning in install.packages :
installation of package ‘flextable’ had non-zero exit status
The downloaded source packages are in
‘/private/var/folders/fs/2zzbjym545vgl0hvq4pvs6sc0000gn/T/Rtmpdo3FMp/downloaded_packages’
推荐答案
我设法通过重新安装quartz解决了这个问题: https://www.xquartz.org
I managed to solve this by reinstalling quartz:https://www.xquartz.org
这篇关于无法安装flextable的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!