Skip to content

Commit 0a24410

Browse files
committed
Silent check warning on DT import
All the code for the Shiny app is in `inst` and so is invisible to the check (it's not technically package code). DT is not used anywhere else nor in explicit namespace imports, which leads to the warning. Added a dummy function that contains a call to a function from DT so that the check sees that DT is used at all. References #103.
1 parent 7592aeb commit 0a24410

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

R/run_sw.R

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,11 @@
1818
run_sw <- function() {
1919
shiny::runApp(system.file("shiny/statnetWeb", package = "statnetWeb"))
2020
}
21+
22+
tame_rcmd_check <- function() {
23+
# Let R CMD check find a instance of using DT. The shiny app code is in
24+
# `inst` so invisible to the check.
25+
DT::DTOutput()
26+
stop("don't call `tame_rcmd_check()`")
27+
NULL
28+
}

0 commit comments

Comments
 (0)