backup.gdsn {bigmelon} | R Documentation

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

### Description

This function will copy a designated gdsn.class object stored inside a gds object to a backup folder (aptly named backup). If the backup folder does not exist, this will be 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) which can be specified using `index.gdsn`

### Value

A gdsobject with an additional folder called backup with supplied node within.

### Author(s)

Tyler Gorrie-Stone <t.gorrie-stone@qmul.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.13.14 Index]