Diagnose the GDS file

Description

Diagnose the GDS file and block information

Usage

1
diagnosis.gds(gdsfile)

Arguments

gdsfile

An object of class gds.class, a GDS file

Value

A list with stream and chunk information.

Author(s)

Xiuwen Zheng

References

http://github.com/zhengxwen/gdsfmt

See Also

createfn.gds, openfn.gds

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# cteate a GDS file
f <- createfn.gds("test.gds")
L <- -2500:2499

# commom types

add.gdsn(f, "label", NULL)
add.gdsn(f, "int", 1:10000, compress="ZIP", closezip=TRUE)
add.gdsn(f, "int.matrix", matrix(L, nrow=100, ncol=50))

closefn.gds(f)


###############################################################

f <- openfn.gds("test.gds", FALSE)

diagnosis.gds(f)

delete.gdsn(index.gdsn(f, "int"))

diagnosis.gds(f)

closefn.gds(f)


###############################################################

cleanup.gds("test.gds")

f <- openfn.gds("test.gds", FALSE)
diagnosis.gds(f)
closefn.gds(f)


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

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.