错误描述
想要实现图片中的中文显示,但是加载showtext包就出现了错误,看其他帖子重装了包貌似也无法解决,这里贴出错误提示。
> library(showtext)
Error: package or namespace load failed for ‘showtext’:
loadNamespace()里算'showtext'时.onLoad失败了,详细内容:
调用: utils::unzip(font_file, exdir = out_dir, overwrite = FALSE)
错误: 'exdir' does not exist
In addition: Warning message:
程辑包‘showtext’是用R版本4.1.2 来建造的
系统环境
R version 4.1.1 (2021-08-10)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 19043)
Matrix products: default
locale:
[1] LC_COLLATE=Chinese (Simplified)_China.936
[2] LC_CTYPE=Chinese (Simplified)_China.936
[3] LC_MONETARY=Chinese (Simplified)_China.936
[4] LC_NUMERIC=C
[5] LC_TIME=Chinese (Simplified)_China.936
attached base packages:
[1] stats graphics grDevices utils
[5] datasets methods base
other attached packages:
[1] showtextdb_3.0 sysfonts_0.8.5
loaded via a namespace (and not attached):
[1] compiler_4.1.1 tools_4.1.1