Description Usage Arguments Author(s) Examples
hugo_save_investigation saves variables and versions of packages used in investigation.
Data is stored in subfolder
resources/session_name in two separate files:
Restoring data and loading saved versions of packages could be done by using function hugo_continue_investigation.
hugo_save_investigation(variables = NULL, session_name = NULL, envir = .GlobalEnv)
a character vector containing names of important variables to be saved.
name of directory in which the session will be saved. If session_name = NULL, the dafault name is set.
an environment to search for objects to be saved. Global Environment by default.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
## Not run: hugo_start_investigation("Example") model <- lm(Petal.Width~., data = iris) res <- model$residuals petal.pred <- predict(model, newdata = iris) hugo_save_investigation() # or select variables to be written out and set name of session's directory: hugo_save_investigation( variables = c('petal.pred', 'res'), session_name = 'IrisModel') # or select the environment that contains variables for saving e <- new.env() e$a <- FALSE e$b <- "a" expect_output(hugo_save_investigation(envir = e)) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.