无法将包 XML 安装到 R [英] Cannot install package XML to R

查看:28
本文介绍了无法将包 XML 安装到 R的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要将包XML"安装到 R.它总是报告XML 不适用于 R(版本 3.1.1)"我试图下载 .tar 但它仍然没有工作.谁能帮我解决这个问题?

I need to install the package "XML" to R. It always reports "XML is not available for R(Version 3.1.1)" I have tried to download the .tar but it still did'n work. Can anyone help me to solve this?

> install.packages("XML", repos = "http://www.omegahat.org/R");
Warning in install.packages :
  cannot open: HTTP status was '404 Not Found'
Warning in install.packages :
  cannot open: HTTP status was '404 Not Found'
Warning in install.packages :
  unable to access index for repository http://www.omegahat.org/R/bin/windows/contrib/3.1

   package ‘XML’ is available as a source package but not as a binary

Warning in install.packages :
  package ‘XML’ is not available (for R version 3.1.1)

推荐答案

一般来说,install.packages("XML") 过去对我来说效果很好,但我最近遇到了一个问题R 版本 3.6.3.

In general, install.packages("XML") worked well for me in the past, but I recently had an issue with R version 3.6.3.

我的解决方案是:

install.packages("XML", repos = "http://www.omegahat.net/R")

请注意,它是 .net,而不是 .org.

Note that it's .net, not .org.

这篇关于无法将包 XML 安装到 R的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆