backup.gdsn {bigmelon} | R Documentation

## Copy gds node to a backup folder within gds object

### 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. This is a wrapper to `copyto.gdsn` which should be used if one wishes to copy a gds node to a seperate gds file.

### Usage

    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

    data(melon)
    e <- es2gds(melon, "melon.gds")
    nod <- index.gdsn(e, "betas")
    backup.gdsn(gds = NULL, node = nod)

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

[Package bigmelon version 1.8.0 Index]