mirror of https://git.sr.ht/~hrbrmstr/cspy
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
859 B
21 lines
859 B
#' @title rJava logging
|
|
#' @description Toggle verbose rJava logging
|
|
#' @details This function turns off the somewhat verbose rJava logging, most of which is
|
|
#' uninformative. It is called automatically when tabulizer is attached via
|
|
#' \code{library()}, \code{require}, etc. To keep logging on, load the package
|
|
#' namespace using \code{requireNamespace("htmlunit")} and reference functions
|
|
#' in using fully qualified references.
|
|
#' @note This resets a global Java setting and may affect logging of other rJava operations,
|
|
#' requiring a restart of R.
|
|
#' @return `NULL`, invisibly.
|
|
#' @author Thomas J. Leeper <thosjleeper@@gmail.com>
|
|
#' @noRd
|
|
#' @md
|
|
#' @examples
|
|
#' \dontrun{
|
|
#' stop_logging()
|
|
#' }
|
|
stop_logging <- function() {
|
|
rJava::J("java.util.logging.LogManager")$getLogManager()$reset()
|
|
invisible(NULL)
|
|
}
|