“magrittr”403 禁止且无法安装

‘magrittr’ 403 Forbiddened and unable to be installed

提问人:JimmyX_NZ 提问时间:8/1/2023 最后编辑:JimmyX_NZ 更新时间:8/1/2023 访问量:80

问:

我从 CRAN 下载软件包时遇到问题。最初,我的公司似乎阻止我下载 zip 文件。我跳过了重重障碍,获得了高水平的互联网访问,还尝试了一些简单的修复程序,但问题仍然存在。我可以从 CRAN 下载其他软件包,但似乎被认为不安全,无论我尝试什么,都会得到 403ed。magrittrmagrittr

似乎也是很多包都需要的核心包之一,所以没有它的生活会很辛苦。magrittr

> options(download.file.method = "wininet")

> install.packages("magrittr")
Warning in install.packages :
  the 'wininet' method is deprecated for http:// and https:// URLs
trying URL 'http://cran.rstudio.com/bin/windows/contrib/4.3/magrittr_2.0.3.zip'
Warning in install.packages :
cannot open URL 'http://cran.rstudio.com/bin/windows/contrib/4.3/magrittr_2.0.3.zip': HTTP status was '403 Forbidden'
Error in download.file(url, destfile, method, mode = "wb", ...) : 
  cannot open URL 'http://cran.rstudio.com/bin/windows/contrib/4.3/magrittr_2.0.3.zip'
Warning in install.packages :
  download of package ‘magrittr’ failed
> devtools::install_github("rstudio/rmarkdown")
Error in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]) : 
  there is no package called ‘magrittr’
> install.packages("cran.r-project.org/src/contrib/Archive/magrittr/…", repos = NULL, type="source")
Warning: invalid package 'cran.r-project.org/src/contrib/Archive/magrittr/…'
Error: ERROR: no packages specified
Warning in install.packages :
  installation of package ‘cran.r-project.org/src/contrib/Archive/magrittr/…’ had non-zero exit status
[1] "R version 4.3.1 (2023-06-16 ucrt)"

我已经取消了“选项”中的“使用安全方法进行https下载”选项。

我已将下载方法设置为options(download.file.method = "wininet")

我尝试将全局存储库更改为其他存储库。

我还尝试安装存档版本。

从网络安全方面,他们可以看到 zip URL 被 Zscaler 阻止。但是其他包的 zip URL 没有被阻止。magrittr

install.packages("installr")
Warning in install.packages :
  the 'wininet' method is deprecated for http:// and https:// URLs
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.3/installr_0.23.4.zip'
Content type 'application/zip' length 348583 bytes (340 KB)
downloaded 340 KB

package ‘installr’ successfully unpacked and MD5 sums checked
R 安装 http-status-code-403 magrittr

评论


答: 暂无答案