I've just upgraded to Posit Package Manager v2023.08.0-16. I was on 2022.11.0 before that.
After upgrading, I'm finding that my Git builders for private packages (on GitHub private repos) are not running. The
/var/log/rstudio/rstudio-pm/rstudio-pm.log file has this message:
2023/09/29 15:53:52 Warning: Skipping git-builder 'monitor'. R is not configured on this system. Building Git packages is disabled. Please check your Package Manager configuration.
The thing is, this was working fine before the PPM upgrade. Each Git builder is connected to GitHub with a deploy SSH key, and they're tag-based builders.
R is installed, and it's on the system path. It's installed in
/opt/R as described in the installation instructions.
$ which -a R /usr/local/bin/R
$ which -a Rscript /usr/local/bin/Rscript
$ ls -al /opt/R/ total 0 drwxr-xr-x. 6 root root 58 Sep 29 09:07 . drwxr-xr-x. 8 root root 87 Feb 17 2023 .. drwxr-xr-x. 5 root root 41 May 10 2021 4.0.5 drwxr-xr-x. 5 root root 41 Sep 26 2022 4.2.1 drwxr-xr-x. 5 root root 41 Sep 29 09:07 4.2.2 drwxr-xr-x. 5 root root 41 Sep 29 09:07 4.2.3
$ ls -al /usr/local/bin/R lrwxrwxrwx. 1 root root 18 Sep 29 09:31 /usr/local/bin/R -> /opt/R/4.2.2/bin/R
$ ls -al /usr/local/bin/Rscript lrwxrwxrwx. 1 root root 24 Sep 29 09:31 /usr/local/bin/Rscript -> /opt/R/4.2.2/bin/Rscript
$ R --version R version 4.2.2 (2022-10-31) -- "Innocent and Trusting"
I have referenced this version in my configuration file. I was on 4.2.1 before the upgrade, and noticed this issue, so thought perhaps upgrading to 4.2.2 might fix it, but unfortunately not. Here are the relevant lines from the
/etc/rstudio-pm/rstudio-pm.gcfg file (I've left out the other keys, but the server section also has
[Server] ; Git sources require a configured R installation. R is often installed at `/usr/lib/R` ; or `/usr/lib64/R`. RVersion = /opt/R/4.2.2
What am I missing? A service restart hasn't encouraged PPM to find the installed version of R.
Thanks in advance.