addToLogger: Enhancing RUnit Logger

Description Usage Arguments Value


Adds a function or a local variable to RUnit global logger.


  addToLogger(name, value, logger = NULL)



name of the function or variable to add


object to append to the logger. If value is a function it is added to the list and is accessible via .testLogger$name. If value is a variable it is added to the local environment and is therefore accessible in all logging functions.


an optional RUnit logger object. If missing or NULL, the object .testLogger is searched in .GlobalEnv – and an error is thrown if it does not exist.


the modified logger object. Note that the global object is also modified if logger is NULL.

Search within the pkgmaker package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.