Description Usage Arguments Examples
Write and Reload R Session include library attach conditions.
1 2 3 | write_session(file)
read_session(file, pkgs = TRUE, pickup = NULL)
|
file |
a (readable binary-mode) connection or a character string giving the name of the file to load (when tilde expansion is done). |
pkgs |
logical. If FALSE, load only R objects. |
pickup |
character vector or NULL. If a given variable exists, only that variable is read into the workspace. |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | ## Not run:
library(ggplot2)
p <-
ggplot(iris, aes(Sepal.Length, Petal.Width)) +
geom_point()
write_session("my_session.Rdata")
# Restart R...
read_session("my_session.Rdata")
p + theme_bw()
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.