GitHub action stalls on `setup-r-dependencies@v2`

I am using r-lib/setup-r-dependencies@v2 for a bookdown project on GitHub action. However, the job is stalling when pak tries to create a lock file. Here is an example run, and here is the workflow.

As you can see, eventually the job just times out.

Screen Shot 2022-09-14 at 8.24.44 AM

The issue seems similar to this post. The solution there was to use the most current RSPM, but I believe that is already what I am using (I don't specify anything different in the workflow).

Any ideas on what might be causing this?

Your URL is invalid: https://github.com/atlas-aai/ncdb-example/blob/main/.github/workflows/bookdown.yml

My mistake!

Workflow file is here: ncdb-example/bookdown.yml at remove-renv · atlas-aai/ncdb-example · GitHub

And updated output is here (still running, but lagging at the same point): Remove renv · atlas-aai/ncdb-example@6b00ceb · GitHub

It is because you set another CRAN mirror, without naming it CRAN here: ncdb-example/.Rprofile at main · atlas-aai/ncdb-example · GitHub

So pak will set another CRAN mirror, and this causes a combinatorial explosion in the solver. Either remove that line, or name that mirror CRAN.

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

If you have a query related to it or one of the replies, start a new topic and refer back with a link.