rename.gdsn {gdsfmt} | R Documentation

## Rename a GDS node

### Description

Rename a GDS node.

### Usage

    rename.gdsn(node, newname)

### Arguments

`node` | an object of class `gdsn.class`, a GDS node
`newname` | the new name of a specified node

### Details

CoreArray hierarchical structure does not allow duplicate names in the same folder.

### Value

None.

### Author(s)

Xiuwen Zheng

### References

http://github.com/zhengxwen/gdsfmt

### See Also

`name.gdsn`, `ls.gdsn`, `index.gdsn`

### Examples

    # cteate a GDS file
    f <- createfn.gds("test.gds")
    n <- add.gdsn(f, "old.name", val=1:10)
    f

    rename.gdsn(n, "new.name")
    f

    # close the GDS file
    closefn.gds(f)

    # delete the temporary file
    unlink("test.gds", force=TRUE)

[Package gdsfmt version 1.20.0 Index]