> install.packages('sysfonts')
There is a binary version available but the source version is later:
binary source needs_compilation
sysfonts 0.5 0.6 TRUE
Do you want to install from sources the package which needs compilation?
y/n: y
installing the source package ‘sysfonts’
trying URL 'https://cloud.r-project.org/src/contrib/sysfonts_0.6.tar.gz'
Content type 'application/x-gzip' length 1140429 bytes (1.1 MB)
==================================================
downloaded 1.1 MB
* installing *source* package ‘sysfonts’ ...
** package ‘sysfonts’ successfully unpacked and MD5 sums checked
checking for gcc... clang
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether clang accepts -g... yes
checking for clang option to accept ISO C89... none needed
checking for pkg-config... /usr/local/bin/pkg-config
checking whether pkg-config could find zlib... yes
checking whether pkg-config could find libpng... yes
checking whether pkg-config could find freetype2... yes
configure: creating ./config.status
config.status: creating src/Makevars
** libs
clang -I/Library/Frameworks/R.framework/Resources/include -DNDEBUG -I/usr/local/include/freetype2 -I/usr/local/Cellar/libpng/1.6.30/include/libpng16 -I/usr/local/Cellar/libpng/1.6.30/include/libpng16 -I/usr/local/include -fPIC -Wall -g -O2 -c register_routines.c -o register_routines.o
clang -I/Library/Frameworks/R.framework/Resources/include -DNDEBUG -I/usr/local/include/freetype2 -I/usr/local/Cellar/libpng/1.6.30/include/libpng16 -I/usr/local/Cellar/libpng/1.6.30/include/libpng16 -I/usr/local/include -fPIC -Wall -g -O2 -c sysfonts.c -o sysfonts.o
clang -dynamiclib -Wl,-headerpad_max_install_names -undefined dynamic_lookup -single_module -multiply_defined suppress -L/Library/Frameworks/R.framework/Resources/lib -L/usr/local/lib -o sysfonts.so register_routines.o sysfonts.o -L/usr/local/lib -lfreetype -L/usr/local/Cellar/libpng/1.6.30/lib -lpng16 -lz -F/Library/Frameworks/R.framework/.. -framework R -Wl,-framework -Wl,CoreFoundation
installing to /Library/Frameworks/R.framework/Versions/3.4/Resources/library/sysfonts/libs
** R
** inst
** preparing package for lazy loading
** help
*** installing help indices
** building package indices
** testing if installed package can be loaded
* DONE (sysfonts)
The downloaded source packages are in
‘/private/var/folders/k5/vkj41g6943n46_wbzr2kdkbc0000gn/T/RtmpSPipPM/downloaded_packages’
> library(sysfonts)
Error: package or namespace load failed for ‘sysfonts’ in runHook(".onLoad", env, package.lib, package):
lazy-load database '/Library/Frameworks/R.framework/Versions/3.4/Resources/library/sysfonts/R/sysfonts.rdb' is corrupt
In addition: Warning message:
In runHook(".onLoad", env, package.lib, package) :
internal error -3 in R_decompress1
mac最新系统,R最新版本