where PICARD_MULTIMETRICS=${PICARD_HOME}/CollectMultipleMetrics.jar. In other words, we don't have control of the Rscript ... system calls, so we cannot rewrite it to use Rscript --vanilla ....
Suggestion
An alternative might be to set environment R_PROFILE_USER=NULL before the above call to Picard. That should tell R to skip any .Rprofile files. Alternatively, we could create an empty ./.Rprofile file, which then should trump ~/.Rprofile.
Issue
If user's
~/.Rprofile
outputs a message, e.g.then the
lg3 run Recal
step may produce ERROR messages like:Troubleshooting
This is outputted by:
https://github.com/UCSF-Costello-Lab/LG3_Pipeline/blob/5458c612d696ff7a46ef6abca750d822f01a5c4b/scripts/Recal.sh#L289-L302
where
PICARD_MULTIMETRICS=${PICARD_HOME}/CollectMultipleMetrics.jar
. In other words, we don't have control of theRscript ...
system calls, so we cannot rewrite it to useRscript --vanilla ...
.Suggestion
An alternative might be to set environment
R_PROFILE_USER=NULL
before the above call to Picard. That should tell R to skip any.Rprofile
files. Alternatively, we could create an empty./.Rprofile
file, which then should trump~/.Rprofile
.