isRscript: Check Rscript

Description Usage Arguments

Description

Return a boolean depending on whether the script was called from Rscript or not.

Usage

1
isRscript(returnPath = FALSE)

Arguments

returnPath

If FALSE (default), it returns TRUE if the script was called from Rscript, or FALSE if it was not.

When returnPath is TRUE, instead of returning a boolean, it returns the path of the script or NULL.


fabarca/reutiles documentation built on May 16, 2019, 9:57 a.m.