‘magrittr’403 禁止,无法安装

问题描述 投票:0回答:0

我在从 CRAN 下载

magrittr
包时遇到问题。最初,我的公司似乎阻止我下载 zip 文件。我克服了困难并获得了高级别的互联网访问权限,还尝试了一些简单的修复,但问题仍然存在。我可以从 CRAN 下载其他软件包,但是
magrittr
似乎被认为不安全,并且无论我尝试什么都会收到 403ed。

而且

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")

设置了我的下载方法

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

我还尝试安装存档版本。

从网络安全方面,他们可以看到

magrittr
zip URL 被 Zscaler 阻止。但其他包的 zip URL 不会被阻止。

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 installation package http-status-code-403 magrittr
© www.soinside.com 2019 - 2024. All rights reserved.