Skip to content

Commit 991c67a

Browse files
committed
Import one function from DT
This is a cleaner way to resolve the imported-but-not-used R CMD check warning. References #103
1 parent 0a24410 commit 991c67a

3 files changed

Lines changed: 2 additions & 8 deletions

File tree

NAMESPACE

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import(lattice)
66
import(latticeExtra)
77
import(network)
88
import(shiny)
9+
importFrom(DT,renderDT)
910
importFrom(RColorBrewer,brewer.pal)
1011
importFrom(sna,betweenness)
1112
importFrom(sna,centralization)

R/run_sw.R

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,3 @@
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-
}

R/statnetWeb-package.R

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
#' @import network
1818
#' @import lattice
1919
#' @import latticeExtra
20+
#' @importFrom DT renderDT
2021
#' @importFrom sna betweenness
2122
#' @importFrom sna centralization
2223
#' @importFrom sna closeness

0 commit comments

Comments
 (0)