小编Kur*_*rop的帖子

无法在RStudio中安装devtools - 未找到依赖项(xml2/rversions)

我是R和RStudio的新手,但他正在努力学习并整理一个ShinyApps应用程序.我无法通过Shinyapps进程的第1步,即在RStudio中安装devtools包.我认为根本原因是没有安装"xml2"软件包依赖项,但我似乎无法解决这个问题而且我不明白该怎么做.

我在戴尔笔记本电脑上使用Linux Mint Cinnamon 17.1.我从软件管理器安装了RStudio.在试图解决devtools安装过程中的错误,我已经尝试使用安装R和RStudio从稍微更新包下载apt-get的,我已经尝试安装xml2rversions从RStudio(不可用),我试着用单引号和双引用,我已经尝试添加dependency=true到所有RStudio安装尝试,我已经多次重启RStudio和机器......我没有想法......帮助?

以下是RStudio中devtools安装命令的输出,加上"版本"的输出以防万一.

install.packages("devtools")
Installing package into ‘/home/[MyHomeDir]>/R/i686-pc-linux-gnu-library/3.0’
(as ‘lib’ is unspecified)
Warning in install.packages :
  dependency ‘xml2’ is not available
also installing the dependency ‘rversions’

trying URL 'http://cran.rstudio.com/src/contrib/rversions_1.0.1.tar.gz'
Content type 'application/x-gzip' length 4624 bytes
opened URL
==================================================
downloaded 4624 bytes

trying URL 'http://cran.rstudio.com/src/contrib/devtools_1.8.0.tar.gz'
Content type 'application/x-gzip' length 141487 bytes (138 Kb)
opened URL
==================================================
downloaded 138 Kb

ERROR: dependency ‘xml2’ is not available for package ‘rversions’
* removing ‘/home/[MyHomeDir]/R/i686-pc-linux-gnu-library/3.0/rversions’
Warning …
Run Code Online (Sandbox Code Playgroud)

dependencies r devtools rstudio shiny

5
推荐指数
2
解决办法
5342
查看次数

标签 统计

dependencies ×1

devtools ×1

r ×1

rstudio ×1

shiny ×1