Sage-Bionetworks / synapser

An R package providing programmatic access to Synapse
Apache License 2.0
32 stars 22 forks source link

SYNR-1458 Use R_HOME in configure script to invoke the proper R installation #282

Closed jkiang13 closed 4 years ago

jkiang13 commented 4 years ago

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.