if (requireNamespace("paradox")) {
param_set = paradox::ps(a = paradox::p_dbl(), b = paradox::p_dbl())
param_set$values$a = 0
set_params(param_set, a = 1, .values = list(b = 2), .insert = TRUE)
set_params(param_set, a = 3, .insert = FALSE)
set_params(param_set, b = 4, .insert = TRUE)
}
Run the code above in your browser using DataLab