I'm sure this is a newbie question (well, I am a newbie with GitHub Actions). I'm developing a package (https://github.com/oharar/LatentINLA) that uses INLA, which is not on CRAN. I can't work out how to install INLA correctly: at the uses: r-lib/actions/setup-r-dependencies@v1 stage it fails because it can't find INLA on CRAN, and I can't find any documentation about how to change this.
My R-CMD-check file is here, if you want to wince at what I've tried:
Put INLA in Suggests as opposed to Imports, this way remotes (and CRAN) won't try to install it.
Add a step in the GitHub Actions workflow that'll install INLA. See Non-standard Remotes package INLA in R package for suggestions on how to do so (e.g. the first solution is install.packages("INLA",repos=c(getOption("repos"),INLA="https://inla.r-inla-download.org/R/stable"), dep=TRUE)).
(getting off topic) For your users, adding some sort of check that the package is installed e.g. rlang::check_installed() with some explanation (in that error and in the docs) on how to install it.
Thanks. Now at least I'm getting a different error.
Now at Install pak I get the following error:
The downloaded binary packages are in
/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T//RtmpdZpwrt/downloaded_packages
Error: Error: <callr_remote_error: missing value where TRUE/FALSE needed>
in process 6431
-->
<async_rejected in if (any(bad <- types == "")) { stop("Can't parse remotes: ", paste(refs[bad], collapse = ", "))}: missing value where TRUE/FALSE needed>