/
shapr-package.R
47 lines (45 loc) · 1.2 KB
/
shapr-package.R
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#' @importFrom data.table data.table fread fwrite setnames := year month
#' uniqueN setkey as.data.table copy between is.data.table setcolorder rbindlist
#'
#' @importFrom graphics plot hist rect
#'
#' @importFrom utils head tail methods modifyList
#'
#' @importFrom stats predict
#'
#' @importFrom stats as.formula
#'
#' @importFrom stats formula
#'
#' @importFrom stats model.matrix
#'
#' @importFrom stats model.frame
#'
#' @importFrom stats setNames
#'
#' @importFrom stats contrasts
#'
#' @importFrom stats embed
#'
#' @importFrom stats sd qt pt
#'
#' @importFrom stats rnorm
#'
#' @importFrom Rcpp sourceCpp
#'
#' @keywords internal
#'
#' @useDynLib shapr, .registration = TRUE
NULL
#' @keywords internal
"_PACKAGE"
#' Auxiliary function for the vaeac vignette
#' @description Function that question if the main and vaeac vignette has been built using the
#' `rebuild-long-running-vignette.R` function. This is only useful when using devtools to release
#' `shapr` to cran. See [devtools::release()] for more information.
release_questions <- function() {
c(paste0(
"Did you re-build the `understanding_shapr.Rmd` and `understanding_shapr_vaeac.Rmd` vignettes using ",
"`rebuild-long-running-vignette.R`?"
))
}