Skip to content

Commit

Permalink
Updating syntax for readability
Browse files Browse the repository at this point in the history
  • Loading branch information
jk-brown committed Feb 17, 2024
1 parent 301db8e commit a7179af
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions R/hush.R
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Set an option to control whether messages and warning are suppressed.
# Defaults to verbose messaging.
options("matilda.verbose" = TRUE)
options(matilda.verbose = TRUE)

# Quiet messages

Expand All @@ -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 a7179af

Please sign in to comment.