Rscript detect if R script is being called/sourced from another script Rscript detect if R script is being called/sourced from another script shell shell