tests/testthat/test-ShinyApps.R

library(testthat)
#
# test_that("check shiny launcher",{
#   logFile <- tempfile()
#   registerLogger(createLogger(name = "TEST",
#                               threshold = "TRACE",
#                               appenders = list(createFileAppender(layout = layoutParallel,
#                                                                   fileName = logFile))))
#   logInfo("Hello world")
#   expect_error(expect_warning(launchLogViewer("nonExistentFile")))
# })
#
# # test_that("ensure installed functions correctly",{
# #   expect_message(ensure_installed("notARealPackage"))
# # })

Try the ParallelLogger package in your browser

Any scripts or data that you put into this service are public.

ParallelLogger documentation built on Aug. 22, 2023, 5:11 p.m.