Skip to content

Commit

Permalink
put the deprecition warning behind a gate
Browse files Browse the repository at this point in the history
  • Loading branch information
seabbs committed Aug 14, 2024
1 parent 6fd326f commit b9153b6
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions R/opts.R
Original file line number Diff line number Diff line change
Expand Up @@ -472,9 +472,13 @@ gp_opts <- function(basis_prop = 0.2,
matern_order = 3 / 2,
matern_type,
w0 = 1.0) {
lifecycle::deprecate_warn(
"1.6.0", "gp_opts(matern_type)", "gp_opts(matern_order)"
)

if (!missing(matern_type)) {
lifecycle::deprecate_warn(
"1.6.0", "gp_opts(matern_type)", "gp_opts(matern_order)"
)
}

if (!missing(matern_type)) {
if (!missing(matern_order) && matern_type != matern_order) {
stop(
Expand Down

0 comments on commit b9153b6

Please sign in to comment.