Skip to content

Commit

Permalink
remove deps for splines2 and extraDistr
Browse files Browse the repository at this point in the history
  • Loading branch information
nicholasjclark committed Jan 2, 2024
1 parent 2a23ab1 commit a9e28e5
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
2 changes: 0 additions & 2 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand Down
5 changes: 2 additions & 3 deletions R/monotonic.R
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down
1 change: 0 additions & 1 deletion R/trends.R
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit a9e28e5

Please sign in to comment.