Our synapser configure script itself invokes R and RScript expecting them to be available from the PATH. However if R is installed somewhere that isn't on the path or there are multiple R installations on the system it may not find the proper R version, despite this being invoked downstream of an executing R session.
An executing R session should set the R_HOME environment variable indicating the path to the running R version. If it is available and has a bin directory, this prepends it to the path ensuring that the R and RScript calls will use the expected version of R.
https://sagebionetworks.jira.com/browse/SYNR-1458
Our synapser configure script itself invokes R and RScript expecting them to be available from the PATH. However if R is installed somewhere that isn't on the path or there are multiple R installations on the system it may not find the proper R version, despite this being invoked downstream of an executing R session.
An executing R session should set the R_HOME environment variable indicating the path to the running R version. If it is available and has a bin directory, this prepends it to the path ensuring that the R and RScript calls will use the expected version of R.