# NOT RUN {
# Returns FALSE:
is_verbose("print") #FALSE
enable_verbose()
# Now it returns TRUE:
is_verbose("print") #TRUE
disable_verbose()
# Now it returns FALSE:
is_verbose() #FALSE
is_verbose("print") #FALSE
enable_verbose("print")
print("Hi there!") # Outputs
cat("I won't output") # Doesn't output
# }
Run the code above in your browser using DataCamp Workspace