在安装Cario软件包时遇到了一些麻烦-代码和我从中得到的答复都在下面!
已经尝试安装软件包libxt-dev,如另一篇文章所建议的那样,但响应为:
install.packages中的警告:软件包“ libxt-dev”不可用 (对于R版本3.5.1)
install.packages("tidytext")
install.packages("Cario")
``Warning in install.packages :
package ‘Cario’ is not available (for R version 3.5.1)`
library(tidytext) # for transforming data
library(tidyverse) # for data wrangling
library(Cairo) # for ggwordcloud package to run
library(ggwordcloud) # to render wordclouds
library(DiagrammeR) # to make qual coding
library(rgexf) #To create graph files
响应为:
错误:“开罗”的包或名称空间加载失败: 用于“开罗”的loadNamespace(),详细信息:调用:dyn.load(file,DLLpath = DLLpath,...)错误:无法加载共享对象 '/Library/Frameworks/R.framework/Versions/3.5/Resources/library/Cairo/libs/Cairo.so': dlopen(/Library/Frameworks/R.framework/Versions/3.5/Resources/library/Cairo/libs/Cairo.so, 6):库未加载:/opt/X11/lib/libfreetype.6.dylib已引用 从: /图书馆/框架/R.framework/版本/3.5/资源/图书馆/开罗/libs/Cairo.so 原因:找不到图片