0

我正在尝试papaja在我的 Windows 机器上安装软件包。但我收到以下错误消息

Installing 3 packages: bookdown, rmdfiltr, zip
Installing packages into ‘C:/Users/cophuser/Documents/R/win-library/3.6’
(as ‘lib’ is unspecified)
Error: Failed to install 'papaja' from GitHub:
  (converted from warning) unable to access index for repository http://www.stats.ox.ac.uk/pub/RWin/bin/windows/contrib/3.6:
  cannot open URL 'http://www.stats.ox.ac.uk/pub/RWin/bin/windows/contrib/3.6/PACKAGES'

我用这个命令安装 papaja

# Install devtools package if necessary
if(!"devtools" %in% rownames(installed.packages())) install.packages("devtools")

# Install the stable development verions from GitHub
devtools::install_github("crsh/papaja")

# Install the latest development snapshot from GitHub
devtools::install_github("crsh/papaja@devel")

如果您知道如何解决此问题,请告诉我该怎么办

4

1 回答 1

0

我有同样的问题,我通过将我的 Rtools 更新到 v.4 来解决它。

在这里检查:https ://cran.r-project.org/bin/windows/Rtools/

于 2020-09-09T09:35:36.027 回答