diff --git a/R/utils.R b/R/utils.R index b1fb7fa..e6bb750 100644 --- a/R/utils.R +++ b/R/utils.R @@ -86,7 +86,7 @@ load_deps <- function(...) { #' for more details. #' #' @param quiet Silence messages about the status of the snakemake object and -#' log file [default: TRUE]. +#' log file (default: `TRUE`). #' #' @export #' @author Kelly Sovacool \email{sovacool@@umich.edu} @@ -95,6 +95,7 @@ load_deps <- function(...) { #' log_snakemake(quiet = FALSE) log_snakemake <- function(quiet = TRUE) { if (exists("snakemake")) { + if (FALSE) { snakemake <- NULL } # silences warning "no visible binding for global variable ‘snakemake’ if (length(snakemake@log) > 0) { log_filepath <- snakemake@log[1][[1]] if (isFALSE(quiet)) { diff --git a/man/log_snakemake.Rd b/man/log_snakemake.Rd index 9f7bb45..0226242 100644 --- a/man/log_snakemake.Rd +++ b/man/log_snakemake.Rd @@ -8,7 +8,7 @@ log_snakemake(quiet = TRUE) } \arguments{ \item{quiet}{Silence messages about the status of the snakemake object and -log file \link{default: TRUE}.} +log file (default: \code{TRUE}).} } \description{ This function checks whether a log file was specified in the Snakemake rule.