print.gds.class | R Documentation |
Displays the contents of "gds.class" (a GDS file) and "gdsn.class" (a GDS node).
## S3 method for class 'gds.class'
print(x, path="", show=TRUE, ...)
## S3 method for class 'gdsn.class'
print(x, expand=TRUE, all=FALSE, nmax=Inf, depth=Inf,
attribute=FALSE, attribute.trim=FALSE, ...)
## S4 method for signature 'gdsn.class'
show(object)
x |
an object of class |
object |
an object of class |
path |
the path specifying a GDS node with '/' as a separator |
show |
if TRUE, display the preview of array node |
expand |
whether enumerate all of child nodes |
all |
if FALSE, hide GDS nodes with an attribute "R.invisible" |
nmax |
display nodes within the maximum number |
depth |
display nodes under maximum |
attribute |
if TRUE, show the attribute(s) |
attribute.trim |
if TRUE, trim the attribute information if it is too long |
... |
the arguments passed to or from other methods |
None.
Xiuwen Zheng
# cteate a GDS file
f <- createfn.gds("test.gds")
add.gdsn(f, "int", 1:100)
add.gdsn(f, "int.matrix", matrix(1:(50*100), nrow=100, ncol=50))
put.attr.gdsn(index.gdsn(f, "int.matrix"), "int", 1:10)
print(f, all=TRUE)
print(f, all=TRUE, attribute=TRUE)
print(f, all=TRUE, attribute=TRUE, attribute.trim=FALSE)
show(index.gdsn(f, "int"))
show(index.gdsn(f, "int.matrix"))
# close the GDS file
closefn.gds(f)
# delete the temporary file
unlink("test.gds", force=TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.