Silently source R script with optional message and warning suppression
Source:R/General_SourceSilent.R
SourceSilent.Rd
This function sources an R script file with options to suppress messages and/or warnings. It is useful for running scripts that generate a lot of console output that is not needed.
Arguments
- File
A string specifying the path of the file to be sourced.
- Messages
Logical; if
TRUE
(default), messages generated by the script are shown. IfFALSE
, messages are suppressed.- Warnings
Logical; if
TRUE
(default), warnings generated by the script are shown. IfFALSE
, warnings are suppressed.- ...
Additional arguments passed to the
source
function.