Skip to contents

This function checks whether a log file was specified in the Snakemake rule. If so, it directs any output, messages, warnings, or errors to the rule-specific log file. See the Snakemake documentation on log files and R scripts for more details.

Usage

log_snakemake(quiet = TRUE)

Arguments

quiet

Silence messages about the status of the snakemake object and log file (default: TRUE).

Author

Kelly Sovacool sovacool@umich.edu

Examples

# The Snakemake object doesn't exist, so nothing happens
log_snakemake(quiet = FALSE)
#> No Snakemake object exists, so all output will print as usual