Skip to contents

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.

Usage

SourceSilent(File, Messages = TRUE, Warnings = TRUE, ...)

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. If FALSE, messages are suppressed.

Warnings

Logical; if TRUE (default), warnings generated by the script are shown. If FALSE, warnings are suppressed.

...

Additional arguments passed to the source function.

Value

It is used for its side effect of sourcing a file with optional suppression of messages and warnings.

Author

Ahmed El-Gabbas