Learn R Programming

ANTsR (version 0.3.3)

save.ANTsR: save.ANTsR

Description

Save and load ANTsR sessions.

Usage

save.ANTsR(filename=file.path('.','.ANTsRsession'), objects=NA, env=as.environment(1), overwrite=F, clonediskfiles=T, ...)
load.ANTsR(filename=file.path('.','.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.
overwrite
logical to select whether overwriting existing data is allowed.
clonediskfiles
logical enables the copying of disk files that are not loaded in workspace but where character variables point. Set to TRUE if moving sessions from one computer to another or if you save antsRegistration() outputs. Set to FALSE if you save temporary sessions to continue later on the same computer.
...
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")
# ## End(Not run)

Run the code above in your browser using DataLab