diff --git a/R/ms_update_observations.R b/R/ms_update_observations.R index 4b5f9d6..cb5bc87 100644 --- a/R/ms_update_observations.R +++ b/R/ms_update_observations.R @@ -51,6 +51,8 @@ #' # make a studio for the model #' ms <- modelStudio(explainer_titanic) #' +#' \donttest{ +#' #' # add new observations #' ms <- ms_update_observations(ms, #' explainer_titanic, @@ -58,7 +60,7 @@ #' new_observation_y = titanic_imputed$survived[100:101]) #' ms #' -#' \donttest{ +#' #' #' # overwrite the observations with new ones #' ms <- ms_update_observations(ms, diff --git a/man/ms_update_observations.Rd b/man/ms_update_observations.Rd index 521e1d1..8581247 100644 --- a/man/ms_update_observations.Rd +++ b/man/ms_update_observations.Rd @@ -66,6 +66,8 @@ explainer_titanic <- explain(model_titanic, # make a studio for the model ms <- modelStudio(explainer_titanic) +\donttest{ + # add new observations ms <- ms_update_observations(ms, explainer_titanic, @@ -73,6 +75,8 @@ ms <- ms_update_observations(ms, new_observation_y = titanic_imputed$survived[100:101]) ms + + # overwrite the observations with new ones ms <- ms_update_observations(ms, explainer_titanic, @@ -80,6 +84,8 @@ ms <- ms_update_observations(ms, overwrite = TRUE) ms +} + } \references{ \itemize{