CRAN
loggit 1.1.1
Effortless Exception Logging
Released Apr 9, 2018 by Ryan Price
Dependencies
A very simple and easy-to-use set of suspiciously-familiar functions. 'loggit' provides a set of wrappings for base R's message(), warning(), and stop() functions that maintain identical functionality, but also log the handler message to a 'JSON' log file. While mostly automatic, powerful custom logging is available via these handlers' logging function, loggit(), which is also exported for use. No change in existing code is necessary to use this package.
Installation
Maven
This package can be included as a dependency from a Java or Scala project by including
the following your project's pom.xml
file.
Read more
about embedding Renjin in JVM-based projects.
<dependencies> <dependency> <groupId>org.renjin.cran</groupId> <artifactId>loggit</artifactId> <version>1.1.1-b1</version> </dependency> </dependencies> <repositories> <repository> <id>bedatadriven</id> <name>bedatadriven public repo</name> <url>https://nexus.bedatadriven.com/content/groups/public/</url> </repository> </repositories>
Renjin CLI
If you're using Renjin from the command line, you load this library by invoking:
library('org.renjin.cran:loggit')
Test Results
This package was last tested against Renjin 0.9.2635 on Apr 26, 2018.
- Handler_replacements.message_works_as_it_does_in_base_R_E1
- Handler_replacements.message_works_as_it_does_in_base_R_E2
- Handler_replacements.stop_works_as_it_does_in_base_R_E1
- Handler_replacements.stop_works_as_it_does_in_base_R_E2
- Handler_replacements.stopifnot_works_as_it_does_in_base_R_E1
- Handler_replacements.stopifnot_works_as_it_does_in_base_R_E2
- getLogFile-examples
- getTimestampFormat-examples
- get_logs-examples
- handlers-examples
- setLogFile-examples
- setTimestampFormat-examples
- testthat