Within Posit Connect log files:
Could not detect R
Could not run R as rstudio-connect
The above errors indicate that R cannot be detected in the installation. This most often occurs when the administrator has upgraded from an earlier version of Posit Connect to the release 2022.09 or above. Releases after 2022.09 do not install R automatically as R is no longer a requirement to run Posit Connect as of the September 2022 release.
The error can be resolved in two different ways depending on how the administrator wishes to manage R. For automatic R scanning, set the below in
ExecutableScanning = true
ExecutableSystemScanning = true
To manually point to specific instances of R; disable
R.ExecutableScanning and point the configuration file to where the instances' executables are installed. This configuration should point directly to the binaries. E.g:
ExecutableScanning = false
Executable = "/opt/R/4.1.2/bin/R"
Executable = "/opt/R/4.1.3/bin/R"
After setting these attributes in the
rstudio-connect.gcfg file, please restart Posit Connect and retry running the application.