read_session: Write and Reload R Session

Description Usage Arguments Examples

Description

Write and Reload R Session include library attach conditions.

Usage

1
2
3

Arguments

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.

Examples

 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)

uribo/sessiondiverge documentation built on July 7, 2019, 3:59 a.m.