Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
R
 
 
man
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

quietR

Travis build status

Overview

quietR is an extremely simple package that masks the print, cat and message functions to allow them to be toggled with a consistent set of functions so that you don't have to write your own verbose handling logic in your code.

Example

The principle of this package is extremely simple. Allow console output functions to be suppressed in a simplistic way so that it isn't necessary to implement logic throughout a package. Consider the following example:

library(quietR)

# You can see all of these:
print("Hello!")
message("Oi!")
cat("¡Hola!\n")

disable_verbose()
# Now you can't see these:
print("Hi")
message("Olá!")
cat("¡Aló!\n")

enable_verbose("print")
# Outputs
print("Hi there!") 
 # Doesn't output
cat("I won't output")

Getting Help/Helping

If you need help, send me an email or create an issue. If you have a better idea for how to do this, feel free to send a pull request or create an issue.

About

An extremely simple package that masks print, cat and message to allow them to be toggled on and off

Resources

License

Packages

No packages published

Languages

You can’t perform that action at this time.