I am using 'r-lib/actions/setup-r-dependencies@v2' within another action and it starts fine but for some reason it hangs when pak is creating the lock file forever, meaning 2+h , without error. (In the same repo in the rcmdcheck action the lockfile creation takes ~10s with no issues). Here is an example run.
Maybe someone here has an idea or tips how to troubleshoot issues like this on gha.
The action allows for setting up extra repositories but this step is after setup-r-dependencies (e.g. {styler} uses {here}) and in this run specifically there are no extra repositories used.
I updated the {touchstone} action with any:: as you suggested and will test with that.
I am not sure why you need that but if it is for reproducibility, that is not working very well, because some dependencies are coming from CRAN anyway, see the lock file.
Unfortunately the pak dependency solver is not great if you have multiple candidates for most of the packages, hence the long running time. If you use the latest RSPM, then it should be fast.
Hm I see, with any::: it works quicker (but still slow ~4min), yes it is intended for reproducibiloty, prior to switching to setup-r-dependencies we used {remotes} would that have the same issues with reproducibility?
If you use any:: that is better in general, because then pak does not try to install the latest version of these extra packages, and their soft dependencies also won't be installed.
Unfortunately you cannot specify this for lorenzwalthert/touchstone so all dependencies of this package will be installed, and it requires some packages, e.g. testthat 3.0.0, that are not available in the RSPM repo.
If you look at the lock file, you'll see that some packages are coming from CRAN, still.
A better option for now, until you can tell pak not to install the soft dependencies of the extra GH package, is to remove lorenzwalthert/touchstone from the extra packages, and install it manually, after the setup-r-dependencies step, by calling