Skip to content

Commit

Permalink
Silence global var warning
Browse files Browse the repository at this point in the history
  • Loading branch information
kelly-sovacool committed Jul 13, 2022
1 parent 9199aa8 commit 68236f3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion R/utils.R
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand All @@ -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)) {
Expand Down
2 changes: 1 addition & 1 deletion man/log_snakemake.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 68236f3

Please sign in to comment.