use_logger | R Documentation |
This gives you a minimal logger with no appenders that you can use inside
your package under the name lg
(e.g. lg$fatal("test")). use_logger()
does not modify any files but only prints code for you to copy and paste.
use_logger(
pkg = desc::desc_get("Package", rprojroot::find_package_root_file("DESCRIPTION"))[[1]]
)
pkg |
|
a character
scalar containing R code.
use_logger("testpkg")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.