[英]Error installing package readtext in R studio
I am using R studio on Ubuntu and I need to install the package "readtext", though when I do the command to install it:我在 Ubuntu 上使用 R 工作室,我需要安装 package “readtext”,尽管当我执行安装它的命令时:
install.packages("readtext") install.packages("readtext")
I get the following error: ERROR: dependencies 'pdftools', 'streamR' are not available for package 'readtext' * removing '/home/ines/R/x86_64-pc-linux-gnu-library/3.6/readtext' Warning in install.packages: installation of package 'readtext' had non-zero exit status我收到以下错误:错误:依赖项'pdftools','streamR'不适用于package'readtext' *删除'/home/ines/R/x86_64-pc-linux-gnu-library/3.6/readtext'警告install.packages:安装 package 'readtext' 的退出状态非零
The downloaded source packages are in '/tmp/RtmpytIy3B/downloaded_packages'下载的源包在'/tmp/RtmpytIy3B/downloaded_packages'
Can you help me please?你能帮我吗? Ines
伊内斯
The readtext package has a long list of Imports .阅读文本 package 有一长串 Imports 。 Dependencies matter: you are will always be bound by the hardest constraint---which here appears to be that two of the listed direct
Imports:
.依赖关系很重要:您将始终受到最严格的约束——这似乎是列出的两个直接
Imports:
。
Here I would recommend to work on the errors shown: as readtext
depends on pdftools
and streamr
, you need to install these first.在这里,我建议处理显示的错误:由于
readtext
依赖于pdftools
和streamr
,您需要先安装它们。 So try to work out if所以试着弄清楚如果
install.packages("pdftools")
(which will likely require system dependency libpoppler-cpp-dev
to be installed first via sudo apt install libpoppler-cpp-dev
) and (这可能需要首先通过
sudo apt install libpoppler-cpp-dev
libpoppler-cpp-dev
和
install.packages("streamR")
can be provided -- and then try readtext
.可以提供——然后尝试
readtext
。
This is not an easy problem because of the many dependencies.由于存在许多依赖关系,这不是一个简单的问题。 There are ways to install pre-built binaries from CRAN packages on Ubuntu, but that is another topic.
有一些方法可以从 Ubuntu 上的 CRAN 包安装预构建的二进制文件,但这是另一个主题。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.