delete.gdsn {gdsfmt} | R Documentation

## Delete a GDS node

### Description

Delete a specified GDS node.

### Usage

    delete.gdsn(node, force=FALSE)

### Arguments

`node` | an object of class `gdsn.class`, a GDS node
`force` | if `FALSE`, it is not allowed to delete a non-empty folder

### Value

None.

### Author(s)

Xiuwen Zheng

### References

http://github.com/zhengxwen/gdsfmt

### See Also

`add.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))
    f

    ## Not run:
    # delete "node", but an error occurs
    delete.gdsn(node)

    ## End(Not run)

    # delete "node"
    delete.gdsn(node, TRUE)

    # close the GDS file
    closefn.gds(f)

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

[Package gdsfmt version 1.28.1 Index]