Skip to content

Commit

Permalink
correcting syntax in getOption()
Browse files Browse the repository at this point in the history
  • Loading branch information
jk-brown committed Feb 17, 2024
1 parent a7179af commit bd9c671
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/hush.R
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ options(matilda.verbose = TRUE)
matilda_message <- function(...) {

# Get the current verbose option setting
verbose <- getOption(matilda.verbose, default = TRUE)
verbose <- getOption("matilda.verbose", default = TRUE)

# Check if verbose
if (verbose) {
Expand All @@ -35,7 +35,7 @@ matilda_message <- function(...) {
matilda_warning <- function(...) {

# Get the current verbose option setting
verbose <- getOption(matilda.verbose, default = TRUE)
verbose <- getOption("matilda.verbose", default = TRUE)

# Check if verbose
if (verbose) {
Expand Down

0 comments on commit bd9c671

Please sign in to comment.