Skip to content

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

License

Unknown, MIT licenses found

Licenses found

Unknown
LICENSE
MIT
LICENSE.md
Notifications You must be signed in to change notification settings

thomascjohnson/quietR

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Unknown, MIT licenses found

Licenses found

Unknown
LICENSE
MIT
LICENSE.md

Stars

Watchers

Forks

Packages

No packages published

Languages