Copy gds node to a backup folder within gds object

Share:

Description

Quick function that will copy designated gdsn.class node within a gds object to a 'backup'folder. If 'backup' folder does not exist, this is created.

Usage

1
backup.gdsn(gds = NULL, node)

Arguments

gds

If NULL, function will call getfolder.gdsn to find the root node. Otherwise, user can specify a separate gds.class object to copy the specified node to.

node

gdsn.class object (a gds node)

Value

gds object is modified to have a new folder 'backup' with supplied node copied inside

Author(s)

Tyler Gorrie-Stone <tgorri@essex.ac.uk>

See Also

copyto.gdsn

Examples

1
2
3
4
5
6
7
data(melon)
e <- es2gds(melon, "melon.gds")
nod <- index.gdsn(e, "betas")
backup.gdsn(gds = NULL, node = nod)

closefn.gds(e)
unlink("melon.gds")