我在AWS中使用了ubuntu AMI,并推出了R studio服务器。
我在安装R软件包时遇到了麻烦。
每当我尝试安装软件包时,我都会收到错误
> 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’
有没有人可以帮我回复错误的原因。会感恩,我花了差不多一天。无法弄清楚
答案 0 :(得分:0)
dependency ‘xml2’ is not available
从错误中,我们可以理解缺少包XML
。您需要安装系统库libxm2-dev
才能安装XML
软件包。因此,请使用以下命令安装程序包:
sudo apt-get install libxml2-dev
此后继续安装R包。