diff --git a/NAMESPACE b/NAMESPACE index 7325b877..dce0b58d 100644 --- a/NAMESPACE +++ b/NAMESPACE @@ -117,7 +117,6 @@ importFrom(brms,pstudent_t) importFrom(brms,qstudent_t) importFrom(brms,rstudent_t) importFrom(brms,student) -importFrom(extraDistr,rlaplace) importFrom(ggplot2,scale_colour_discrete) importFrom(ggplot2,scale_fill_discrete) importFrom(ggplot2,theme_classic) @@ -177,7 +176,6 @@ importFrom(rstantools,posterior_epred) importFrom(rstantools,posterior_linpred) importFrom(rstantools,posterior_predict) importFrom(scoringRules,es_sample) -importFrom(splines2,iSpline) importFrom(stats,Gamma) importFrom(stats,acf) importFrom(stats,as.formula) diff --git a/R/monotonic.R b/R/monotonic.R index e42b48a4..9da72355 100644 --- a/R/monotonic.R +++ b/R/monotonic.R @@ -40,7 +40,6 @@ #' \cr #' Ramsay, J. O. (1988). Monotone regression splines in action. Statistical Science, 3(4), 425--441. #' @importFrom mgcv smooth.construct -#' @importFrom splines2 iSpline #' @export #' @author Nicholas J Clark #' @rdname monotonic @@ -175,7 +174,7 @@ smooth.construct.moi.smooth.spec <- function(object, data, knots){ boundary <- c(xl - xr * 0.01, xu + xr * 0.01) # Generate basis functions - i_spline_basis <- iSpline(x, + i_spline_basis <- splines2::iSpline(x, knots = k, degree = nk, Boundary.knots = boundary, @@ -266,7 +265,7 @@ smooth.construct.mod.smooth.spec <- function(object, data, knots){ boundary <- c(xl - xr * 0.01, xu + xr * 0.01) # Generate basis functions - i_spline_basis <- iSpline(x, + i_spline_basis <- splines2::iSpline(x, knots = k, degree = nk, Boundary.knots = boundary, diff --git a/R/trends.R b/R/trends.R index e298f4e6..4324b00e 100644 --- a/R/trends.R +++ b/R/trends.R @@ -1021,7 +1021,6 @@ extract_series_trend_pars = function(series, samp_index, trend_pars, } #' Wrapper function to forecast trends -#' @importFrom extraDistr rlaplace #' @noRd forecast_trend = function(trend_model, use_lv, trend_pars, Xp_trend = NULL, betas_trend = NULL,