diff --git a/NAMESPACE b/NAMESPACE index 4051ad3..324fd5f 100644 --- a/NAMESPACE +++ b/NAMESPACE @@ -3,6 +3,7 @@ export(crps_weights) export(mixture_from_samples) import(Rcpp) +import(methods) importFrom(RcppParallel,RcppParallelLibs) importFrom(data.table,.SD) importFrom(data.table,`:=`) @@ -11,4 +12,5 @@ importFrom(data.table,setDT) importFrom(data.table,setnames) importFrom(rstan,optimizing) importFrom(rstan,sampling) +importFrom(rstantools,rstan_config) useDynLib(stackr, .registration = TRUE) diff --git a/R/stackr-package.R b/R/stackr-package.R index fa57db0..c92daef 100644 --- a/R/stackr-package.R +++ b/R/stackr-package.R @@ -21,7 +21,9 @@ #' @aliases stackr #' @useDynLib stackr, .registration = TRUE #' @import Rcpp +#' @import methods #' @importFrom rstan sampling +#' @importFrom rstantools rstan_config #' @importFrom RcppParallel RcppParallelLibs #' #' @references diff --git a/configure b/configure index 1c04798..0304fc5 100755 --- a/configure +++ b/configure @@ -1,4 +1,5 @@ +#! /bin/sh + # Generated by rstantools. Do not edit by hand. -#! /bin/sh "${R_HOME}/bin/Rscript" -e "rstantools::rstan_config()" diff --git a/configure.win b/configure.win index 94d77bd..5e2dceb 100755 --- a/configure.win +++ b/configure.win @@ -1,4 +1,5 @@ +#! /bin/sh + # Generated by rstantools. Do not edit by hand. -#! /bin/sh "${R_HOME}/bin${R_ARCH_BIN}/Rscript.exe" -e "rstantools::rstan_config()"