[英]Error while installing R package in AWS
I am using a ubuntu AMI in my AWS and have launched a R studio server.我在我的 AWS 中使用了一个 ubuntu AMI 并启动了一个 R studio 服务器。
I am finding trouble in installing the R packages.我在安装 R 包时遇到了麻烦。
Whenever I try to install the packages I get an error每当我尝试安装软件包时,都会出现错误
> Installing package into
> ‘/home/rstudio2/R/x86_64-pc-linux-gnu-library/3.0’ (as ‘lib’ is
> unspecified) Warning in install.packages : dependency ‘xml2’ is not
> available also installing the dependencies ‘jsonlite’, ‘mime’, ‘curl’,
> ‘openssl’, ‘R6’, ‘httr’, ‘base64enc’, ‘digest’, ‘aws.signature’
>
>
> The downloaded source packages are in
> ‘/tmp/Rtmp1BrKS6/downloaded_packages’
Could anyone help me to backtrace the reason for error.谁能帮我回溯错误的原因。 Would be thankful, I have spent almost a day .
谢天谢地,我已经花了将近一天的时间。 could not figure out
想不通
dependency ‘xml2’ is not available
From this error, we can understand that package XML2
is missing.从这个错误中,我们可以了解到缺少
XML2
包。 You need to install the system library libxml2-dev
to install the XML2
package.您需要安装系统库
libxml2-dev
来安装XML2
包。 So use the following command to install the package:所以使用以下命令来安装包:
sudo apt install libxml2-dev
After this proceed with R package installation.在此之后继续 R 包安装。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.