exist.gdsn {gdsfmt} | R Documentation

## Return whether the path exists or not

### Description

Get a logical vector to show whether the path exists or not.

### Usage

    exist.gdsn(node, path)

### Arguments

`node` | an object of class `gdsn.class`, a GDS node
`path` | the path(s) specifying a GDS node with '/' as a separator

### Value

A logical vector.

### Author(s)

Xiuwen Zheng

### References

http://github.com/zhengxwen/gdsfmt

### See Also

`ls.gdsn`, `index.gdsn`

### Examples

    # cteate a GDS file
    f <- createfn.gds("test.gds")

    # add a list to "test.gds"
    node <- add.gdsn(f, name="list", val=list(x=c(1,2), y=c("T","B","C"), z=TRUE))
    ls.gdsn(node)
    # "x" "y" "z"

    exist.gdsn(f, c("list", "list/z", "wuw/dj"))

    # close the GDS file
    closefn.gds(f)

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

[Package gdsfmt version 1.28.1 Index]