Skip to content

Commit

Permalink
Add globalVariables to supress note in devtools::check()
Browse files Browse the repository at this point in the history
  • Loading branch information
milanwiedemann committed Nov 12, 2024
1 parent 4a23136 commit 36a1130
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 3 deletions.
1 change: 1 addition & 0 deletions .Rbuildignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@
^docs$
^pkgdown$
^app.R$
^rsconnect$
7 changes: 4 additions & 3 deletions R/server.R
Original file line number Diff line number Diff line change
Expand Up @@ -124,12 +124,13 @@ app_server <- function(input, output, session) {
scrollX = TRUE,
searching = FALSE,
dom = "Bfrtip",
buttons = list("copy",
buttons = list(
"copy",
list(
extend = "csv",
title = paste0("selected_", input$dataset, "_codes")
)
),
),
deferRender = TRUE,
scrollY = 400,
scroller = TRUE
Expand Down Expand Up @@ -243,7 +244,7 @@ app_server <- function(input, output, session) {
paper_bgcolor = "transparent",
plot_bgcolor = "transparent"
) %>%
plotly::config(displayModeBar = FALSE) |>
plotly::config(displayModeBar = FALSE) |>
layout(xaxis = list(fixedrange = TRUE), yaxis = list(fixedrange = TRUE))
})
}
12 changes: 12 additions & 0 deletions R/zzz.R
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
.onLoad <- function(...) {
S7::methods_register()
}

utils::globalVariables(c(
"start_date",
"end_date",
"snomed_concept_id",
"description",
"usage",
"icd10_code",
"opcs_code",
"total_usage",
"full_slug"
))

0 comments on commit 36a1130

Please sign in to comment.