Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

register teal.logger handlers #252

Merged
merged 11 commits into from
Mar 20, 2024
1 change: 0 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ repos:
- formatters
- ggplot2
- lifecycle
- logger
- shinyvalidate
- insightsengineering/teal.code
- insightsengineering/teal.logger
Expand Down
4 changes: 2 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -31,16 +31,16 @@ Imports:
formatters (>= 0.3.1),
ggplot2,
lifecycle,
logger (>= 0.2.0),
shinyvalidate,
teal.code (>= 0.4.1.9009),
teal.logger (>= 0.1.1),
teal.logger (>= 0.1.3.9010),
pawelru marked this conversation as resolved.
Show resolved Hide resolved
teal.reporter (>= 0.2.0),
teal.widgets (>= 0.4.0),
tern (>= 0.7.10),
tidyr
Suggests:
knitr,
logger (>= 0.2.0),
pawelru marked this conversation as resolved.
Show resolved Hide resolved
nestcolor (>= 0.1.0),
rmarkdown,
teal.data (>= 0.3.0.9018),
Expand Down
2 changes: 1 addition & 1 deletion R/tm_g_ae_oview.R
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ tm_g_ae_oview <- function(label,
fontsize = c(5, 3, 7),
plot_height = c(600L, 200L, 2000L),
plot_width = NULL) {
logger::log_info("Initializing tm_g_ae_oview")
message("Initializing tm_g_ae_oview")
checkmate::assert_class(arm_var, classes = "choices_selected")
checkmate::assert_class(flag_var_anl, classes = "choices_selected")
checkmate::assert(
Expand Down
2 changes: 1 addition & 1 deletion R/tm_g_ae_sub.R
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ tm_g_ae_sub <- function(label,
plot_height = c(600L, 200L, 2000L),
plot_width = NULL,
fontsize = c(5, 3, 7)) {
logger::log_info("Initializing tm_g_ae_sub")
message("Initializing tm_g_ae_sub")
checkmate::assert_class(arm_var, classes = "choices_selected")
checkmate::assert_class(group_var, classes = "choices_selected")
checkmate::assert(
Expand Down
2 changes: 1 addition & 1 deletion R/tm_g_butterfly.R
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ tm_g_butterfly <- function(label,
plot_width = NULL,
pre_output = NULL,
post_output = NULL) {
logger::log_info("Initializing tm_g_butterfly")
message("Initializing tm_g_butterfly")
checkmate::assert_string(label)
checkmate::assert_string(dataname)
checkmate::assert_class(filter_var, classes = "choices_selected", null.ok = TRUE)
Expand Down
2 changes: 1 addition & 1 deletion R/tm_g_events_term_id.R
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ tm_g_events_term_id <- function(label,
fontsize = c(5, 3, 7),
plot_height = c(600L, 200L, 2000L),
plot_width = NULL) {
logger::log_info("Initializing tm_g_events_term_id")
message("Initializing tm_g_events_term_id")
checkmate::assert_string(label)
checkmate::assert_class(term_var, classes = "choices_selected")
checkmate::assert_class(arm_var, classes = "choices_selected")
Expand Down
2 changes: 1 addition & 1 deletion R/tm_g_heat_bygrade.R
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ tm_g_heat_bygrade <- function(label,
fontsize = c(5, 3, 7),
plot_height = c(600L, 200L, 2000L),
plot_width = NULL) {
logger::log_info("Initializing tm_g_heat_bygrade")
message("Initializing tm_g_heat_bygrade")
args <- as.list(environment())

checkmate::assert_string(label)
Expand Down
2 changes: 1 addition & 1 deletion R/tm_g_spiderplot.R
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ tm_g_spiderplot <- function(label,
plot_width = NULL,
pre_output = NULL,
post_output = NULL) {
logger::log_info("Initializing tm_g_spiderplot")
message("Initializing tm_g_spiderplot")
checkmate::assert_class(paramcd, classes = "choices_selected")
checkmate::assert_class(x_var, classes = "choices_selected")
checkmate::assert_class(y_var, classes = "choices_selected")
Expand Down
2 changes: 1 addition & 1 deletion R/tm_g_swimlane.R
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ tm_g_swimlane <- function(label,
pre_output = NULL,
post_output = NULL,
x_label = "Time from First Treatment (Day)") {
logger::log_info("Initializing tm_g_swimlane")
message("Initializing tm_g_swimlane")
args <- as.list(environment())

checkmate::assert_string(label)
Expand Down
2 changes: 1 addition & 1 deletion R/tm_g_waterfall.R
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ tm_g_waterfall <- function(label,
plot_width = NULL,
pre_output = NULL,
post_output = NULL) {
logger::log_info("Initializing tm_g_waterfall")
message("Initializing tm_g_waterfall")
checkmate::assert_string(label)
checkmate::assert_string(dataname_tr)
checkmate::assert_string(dataname_rs)
Expand Down
1 change: 1 addition & 0 deletions R/zzz.R
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
.onLoad <- function(libname, pkgname) { # nolint
teal.logger::register_logger(namespace = "teal.osprey")
teal.logger::register_handlers("teal.osprey")
}
Loading