github actions failing with 'cannot open URL' message

The R CMD CHECK on Github actions for my package fails with the following error:

I am not sure why since this workflow was working successfully before without any error.

Installing packages into ‘/Users/runner/runners/2.165.2/work/_temp/Library’
(as ‘lib’ is unspecified)
##[error]Error: Failed to install 'tidyBF' from GitHub:
  (converted from warning) unable to access index for repository https://cloud.r-project.org/bin/macosx/el-capitan/contrib/3.6:
  cannot open URL 'https://cloud.r-project.org/bin/macosx/el-capitan/contrib/3.6/PACKAGES'
Execution halted
##[error]Process completed with exit code 1.

Source:

This is a problem today with the central CRAN repository missing its directory of pre-compiled MAC OS binaries. Based on last time, it will be fixed in the next day or so, and then propagate throughout the mirrors soon afterwords.

1 Like

Hi, I experienced same issue yesterday in travis CI while testing macOS with -oldrel.
I think github action is little different from travis CI.

Solution

However I solve it by changing mirror site from cloud.r-project.org/ to cran.r-project.org/.


If you interested, you can see this link that how I solved this problem.
Even I wrote it with korean language but I think you can understand what I mean with uploaded image.

Regards.

2 Likes

Thanks. Seems to be fixed now.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.