Learn R Programming

schtools (version 0.4.1)

log_snakemake: Save output, messages, warnings, and errors to the Snakemake log file

Description

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

Run this code
# The Snakemake object doesn't exist, so nothing happens
log_snakemake(quiet = FALSE)

Run the code above in your browser using DataLab