这两天我在互联网上寻找我的问题的解决方案,但没有成功。我在工作中下载了Rstudio,并尝试安装一些包。
当我将示例放在R中时:
> install.packages("readxl")
它返回
Warning in install.packages :
cannot open URL 'http ://cran.rstudio.com/src/contrib/PACKAGES.rds': HTTP status was '407 Proxy Authorization Required'
Warning in install.
我使用的是Windows 7,我使用的是R Studio 0.99.902和R3.3.1。当我试图安装一个软件包时,我得到了警告:
Warning: unable to access index for repository http://cran.rstudio.com/src/contrib:
cannot open URL 'http://cran.rstudio.com/src/contrib/PACKAGES'
Warning: unable to access index for repository http://www.stats.ox.ac.uk/pub/
我正在尝试使用Dockerfile安装R软件包。
我安装了映像。
Dockerfile的内容如下:
# Base image https://hub.docker.com/r/rocker/rstudio
FROM rocker/rstudio:latest
## Create directories
RUN mkdir -p /rstudio
RUN mkdir -p /rscripts
##Install R packages
RUN R -e "install.packages(c('rvest', 'jsonlite', 'data
我试图安装RcppEigen包,但出现了一个错误,表明RStudio无法打开URL。我也不能在RStudio中安装其他软件包。
# install
install.packages("RcppEigen")
# error message
Warning in install.packages :
unable to access index for repository https://cran.rstudio.com/src/contrib:
cannot open URL 'https://cran.rstudio.com/src/contrib/PAC
我可以安装R可执行文件中的任何包。但是从RStudio那里,我得到了
Warning in install.packages :
unable to access index for repository http://cran.rstudio.com/src/contrib:
cannot open URL 'http://cran.rstudio.com/src/contrib/PACKAGES'
Warning in install.packages :
unable to access index for repository http://www.stat
我在Rstudio中启动了一个新项目,并选择了使用renv的选项。我做的第一件事是输入命令install.packages('sf'),R返回下面的消息。怎么继续?
> install.packages('sf')
Error: package 'sf' is not available
In addition: Warning messages:
1: could not retrieve available packages for url "https://cran.rstudio.com/src/contrib"
在安装R gtools包的过程中,我得到了一个404错误:
> install.packages("gtools")
Installing package into ‘/Users/[...]/Library/R/3.1/library’
(as ‘lib’ is unspecified)
trying URL 'http://cran.rstudio.com/src/contrib/gtools_3.4.2.tar.gz'
Warning in install.packages :
cannot open: HTTP status was '
我试图安装“预测”包,但在安装时遇到了问题。我尝试了install.packages("forecast"),得到了这个错误消息:
*Installing package into ‘C:/Users/DT217/Documents/R/win-library/3.1’
(as ‘lib’ is unspecified)
有二进制版本(将被安装),但源代码版本是后来的:
binary source
forecast 5.8 5.9
also installing the dependencies ‘zoo’, ‘RcppArmadillo’
t
我无法在R中安装OIsurv包。ı正在尝试安装,但收到以下警告: install.packages("OIsurv")
Warning in install.packages :
unable to access index for repository https://cran.rstudio.com/src/contrib:
cannot open URL 'https://cran.rstudio.com/src/contrib/PACKAGES'
Installing package into ‘C:/Users/Cgdm/Documents/R/w
我正尝试在RStudio中安装软件包,但就是做不到。它一直无法安装软件包,没有出现错误或警告。 我之前在安装texlive-full时遇到了问题,可能对我的/etc/apt/soures.list.d文件做了一些尴尬的事情。我遇到了以下问题: install.packages('rstanarm')
Warning in install.packages :
unable to access index for repository https://cloud.r-
project.org/src/contrib:
cannot open URL 'http
我正在为R安装readxl软件包。
以下是RStudio输出:
To learn more and/or disable this warning message see the "Use secure download method for HTTP" option in Tools -> Global Options -> Packages.
> library('readxl')
Error in library("readxl") : there is no package called ‘readxl’
> in
我正在尝试安装库ssev:https://cran.r-project.org/web/packages/ssev/index.html 在装有R 3.6.0的计算机上 install.packages("ssev") 我得到了以下错误: “unable to access index for repository http://cran.rstudio.com/src/contrib:
cannot open URL 'http://cran.rstudio.com/src/contrib/PACKAGES'”
Warning message:
“pac
我已经下载并安装了R(3.4.1)和R studio (1.0.153)在MAC OS ( El船长)上。我在设置代理时遇到了问题。我正在尝试从CRAN安装一些包。
我指的是
我能够设置代理并使用属性http_proxy= http_proxy_user=user:passwd
我启用了options(internet.info = 0)选项,以从R Studio获取互联网访问的跟踪。虽然代理服务器的设置在日志中看起来很好,但它无法获得身份验证。
以下是日志:
Connected to MYSERVER port MYPORT (#0)
> GET http://cran.rstudi
在虚拟桌面上加载和安装软件包时遇到问题。当我尝试打开tidyverse库和其他库时,我突然得到了以下错误:
> library(tidyverse)
Error: package or namespace load failed for ‘tidyverse’ in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]):
namespace ‘broom’ 0.5.6 is being loaded, but >= 0.7.6 is required
然后,我尝试加载broo
当尝试安装软件包时:
> install.packages("mlr")
Installing package into ‘/home/kisco/R/x86_64-pc-linux-gnu-library/3.0’
(as ‘lib’ is unspecified)
Warning in install.packages :
dependencies ‘plyr’, ‘dplyr’, ‘lazyeval’ are not available
also installing the dependencies ‘scales’, ‘ggplot2’, ‘ggvis’,
突然,当我在“帮助”搜索框中输入一个字符串时,RStudio给了我这个错误:
starting httpd help server ...Error in tools::startDynamicHelp() : unable to create socket
当我在控制台中输入以下内容时,会得到相同的错误:
> ?grep
我已经更新到当前版本的RStudio,并运行当前版本的R。我在R本身中尝试了相同的命令,没有问题。
也许巧合的是,当我试图让RStudio更新包时,我得到了这样的消息:
Warning: unable to access index for repository ht
命令行中的r未安装任何软件包。我已经尝试过更改repos,但是包没有保持安装状态。在Rstudio中一切工作正常。这是使用mapDamage时的问题 已经更改了存储库。卸载并多次重新安装R。 > install.packages("gam")
Installing package into ‘/home/gf/R/x86_64-pc-linux-gnu-library/3.4’
(as ‘lib’ is unspecified)
Warning: unable to access index for repository https://cloud.r-project.
我正在尝试为R安装data.table库,但我无法使其工作。我尝试使用CRAN和Bioconductor,但我不断收到错误,该软件包不可用于R 3.2.2:
> biocLite('data.table')
BioC_mirror: http://bioconductor.org
Using Bioconductor version 3.1 (BiocInstaller 1.18.4), R version 3.2.2.
Installing package(s) ‘data.table’
Warning: unable to access index for rep
我无法通过最新版本的RStudio and R Version.3.1.1.安装软件包,敬请帮助。我得到了下面提到的错误:
Example:
Warning in install.packages :
InternetOpenUrl failed: ''
Warning in install.packages :
InternetOpenUrl failed: ''
Warning in install.packages :
unable to access index for repository http://cran.rstudio.com/b
我的大学提供通过VPN访问RStudio。我可以访问,但我不能安装包,我通常可以安装在我的电脑上。我知道这是一个宽泛的问题,但是你有什么办法吗?
这是我尝试安装时得到的结果:
> install.packages("tm")
Warning in install.packages :
unable to access index for repository http://cran.rstudio.com/src/contrib:
object 'status' not found
Installing package into ‘/sscc/ho
我想安装软件包arulesViz,但RStudio返回了以下内容:
Warning in install.packages :
unable to access index for repository https://cran.rstudio.com/src/contrib:
cannot open URL 'https://cran.rstudio.com/src/contrib/PACKAGES'
WARNING: Rtools is required to build R packages but is not currently installed. Plea
当我尝试用RStudio的packages面板安装blogdown包时,出现了这个错误。我想这是一些基本的东西,但我不知道它意味着什么!
> install.packages("blogdown")
There is a binary version available but the source version is later:
binary source needs_compilation
blogdown 0.6 0.7 FALSE
installing the source package ‘blo
我升级到了R版本3.4.3,我不能再安装和使用devtools了--似乎是因为安装digest时出现了问题。我收到以下错误:
install.packages("devtools", dependencies = TRUE)
Warning in install.packages :
dependency ‘BiocInstaller’ is not available
also installing the dependency ‘digest’
trying URL 'https://cran.rstudio.com/bin/macosx/el-capitan
当我尝试用下面的代码在RStudio中编写"ggExtra“库时:
install.packages("ggExtra")
显示的是:
Warning in install.packages :
unable to access index for repository
https://cran.rstudio.com/src/contrib:
cannot open URL 'https://cran.rstudio.com/src/contrib/PACKAGES'
Warning in instal
我是一个Windows用户。几周前,我安装了R和Rstudio以及许多软件包。今天有一条消息说没有安装新的包。
Warning: unable to access index for repository http://www.stats.ox.ac.uk/pub/RWin/src/contrib:
cannot open URL 'http://www.stats.ox.ac.uk/pub/RWin/src/contrib/PACKAGES'
我重新安装了R,但这并没有解决问题。
install.packages中的警告:
InternetOpenUrl failed
我正在尝试写一个R包。当我奔跑的时候
devtools::check(),其中一个警告消息是
Found the following significant warnings: Warning: Installed Rcpp (0.12.12) different from Rcpp used to build dplyr (0.12.10).
然后我
remove.packages("Rcpp")
和
install.packages("Rcpp", repo = "https://cran.rstudio.com/bin/macosx/el-ca
我正在为knitr的安装而战,我不能带来新的解决方案。最后,我删除了knitr,并再次尝试安装。下面是整个控制台的过程,有什么问题吗?每次启动R studio并安装新包时,我都会收到错误消息(见下文)。
R version 3.1.2 (2014-10-31) -- "Pumpkin Helmet"
Copyright (C) 2014 The R Foundation for Statistical Computing
Platform: i386-w64-mingw32/i386 (32-bit)
R is free software and c
我即将开始一个有光泽的项目(通过RStudio)。当我试图使用控制台install.packages("shiny")安装闪亮的软件包时,我会收到以下错误消息:
trying URL 'http://cran.rstudio.com/bin/macosx/mavericks/contrib/3.1/shiny_0.10.1.tgz'
Warning in install.packages :
cannot open: HTTP status was '404 Not Found'
Error in download.file(url, des
我在运行 version 1.1.463 on Yosemite Version 10.10.5。我的笔记本电脑是2015年初的。每当我试图在R中安装任何软件包时,它都会给出以下错误消息:
很抱歉,我是一个完整的n00b,但我不确定这是否意味着软件包被下载。如果他们这样做了,我可以在哪里找到他们,我需要做什么才能让他们安装在R-Studio中?我没有C编译器,也不确定我是否需要一个编译器。
============================================= install.packages('reshape') also inst