rename.gdsn: Rename a GDS node

Description Usage Arguments Details Value Author(s) References See Also Examples

View source: R/gdsfmt-main.r

Description

Rename a GDS node.

Usage

1
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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
# 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)

Example output

File: /work/tmp/test.gds (145B)
+    [  ]
\--+ old.name   { Int32 10, 40B }
File: /work/tmp/test.gds (207B)
+    [  ]
\--+ new.name   { Int32 10, 40B }

gdsfmt documentation built on Dec. 26, 2020, 6 p.m.