Description Author(s) See Also Examples
A simple header-only logging library for C++. Add 'LinkingTo: plogr' to 'DESCRIPTION', and '#include <plogr.h>' in your C++ modules to use it.
Maintainer: Kirill Müller krlmlr+r@mailbox.org
Other contributors:
Sergey Podobry (Author of the bundled plog library) [copyright holder]
Useful links:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | plogr_demo <- Rcpp::cppFunction(depends = "plogr", '
// C++ code begin
#include <plogr.h>
RObject plogr_demo() {
plog::init_r(plog::info);
LOG_INFO << "shown";
LOG_DEBUG << "not shown";
plog::init_r("DEBUG");
LOG_DEBUG << "shown now";
return R_NilValue;
}
#include <Rcpp.h> // not necessary to use plogr
// C++ code end
'
)
plogr_demo()
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.