Description Usage Arguments Details Examples
Make a variable persistent and remove it from interactive scope.
The persistent variables will not be cleaned by the rm(list = ls())
.
1 | persist(a_var)
|
a_var |
The variable to make persisence |
The persisted variables are session-specific. They will be gone after you restart R
Note that if you define a new variable with the same name as the persisted variable, the new variable will mask the persisted one until it is removed.
1 2 3 | x <- "hello"
persist(x)
# x is now not in the .GlobalEnv but still accessible
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.