Learn R Programming

ANTsR (version 1.0)

save.ANTsR: save.ANTsR

Description

Save and load ANTsR sessions.

Usage

save.ANTsR(filename="./.ANTsRsession", objects=NA,
  env=as.environment(1), ...)

load.ANTsR(filename="./.ANTsRsession", env=as.environment(1))

Arguments

filename

Prefix for folder to store data.

objects

Vector of character names of objects to store. Can be antsImages.

env

Environment to save from or load to.

...

Additional arguments to pass to save.

Examples

Run this code
# NOT RUN {
 # causes problems with devtools::run_examples()
# a <- 1
# b <- c( 2, 3, 4)
# save.ANTsR(objects=c('b', 'a'))
# load.ANTsR("./.ANTsRsession")
# }

Run the code above in your browser using DataLab