README.md

sessiondiverge

CRAN
status lifecycle Travis build
status Coverage
status AppVeyor build
status

One day, My R journey

library(ggplot2)

p <- 
  ggplot(iris, aes(Sepal.Length, Petal.Width)) +
  geom_point()
save.image("my_session.Rdata")

Finishing work. Then restart on the next day using load().

load("my_session.Rdata")

p # OK. 

p + theme_bw()
# Error in theme_bw() : could not find function "theme_bw"

R Objects can be reproduced by load(), but we need to read the package again. It takes labor and effort.

library(ggplot2)

p + theme_bw() # OK

The goal of sessiondiverge is to I/O session including package load state.

library(sessiondiverge)
library(ggplot2)

p <- 
  ggplot(iris, aes(Sepal.Length, Petal.Width)) +
  geom_point()

write_session("my_session.Rdata")

Restart R.

sessiondiverge::read_session("my_session.Rdata")

p + theme_bw() # OK

Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms.



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