save | R Documentation |
This function allows you to save encrypted R objects. R objects are taken from the environment.
save(..., list = character(), file = stop("'file' must be specified"),
envir = parent.frame(), password = NULL)
... |
the variables to be saved. |
list |
an optional list of names that identity the R objects to store. |
file |
the path to the file. |
envir |
the environment the variables are token from. |
password |
the password to use, if NULL, the package tries to ask for a password. |
Uses AES 256-bit encryption (in CBC mode) with a SHA-256 hashed password.
Asking for a password relies on being in interactive() mode (RStudio, RGui). Outside interactive() mode (rmarkdown, knitr), the package "getPass" is required.
df <- data.frame(rnorm(100))
save(df, file="mydata.Rdata")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.