I see R installed in 2 places:
/usr/lib/R -- version 3.6.3 (this is the version of R that RStudio Connect is using)
/opt/R -- version 4.1.2 (this is the version of R that I would like RStudio Connect to use instead)
Note that the version of R on the PATH is also 4.1.2.
The "Documentation" tab shows only version 3.6.3 recognized.
Is it an acceptable solution to update the version of R at /usr/lib/R to a newer version (e.g., 4.1.2)? If so, are there any best practices for executing that update safely?
I did try adding the following line to the /etc/rstudio-connect/rstudio-connect.gcfg file:
[Server]
RVersion = /opt/R/4.1.2
And I restarted the service via sudo systemctl restart rstudio-connect, but the issue still remains (can only find 3.6.3 on deployment from RStudio IDE, and the "Documentation" tab still only shows 3.6.3)
However, when I add RVersionScanning = false to that block, it breaks RStudio Connect altogether (I receive a 503 error in the browser)