Description Usage Arguments Details Value Author(s) References See Also Examples
Write the data cached in memory to disk.
1 | sync.gds(gdsfile)
|
gdsfile |
An object of class |
For better performance, Data in a GDS file are usually cached in memory.
Keep in mind that the new file may not actually be written to disk, until
closefn.gds
or sync.gds
is called. Anyway, when
R shuts down, all GDS files created or opened would be automatically closed.
None.
Xiuwen Zheng
http://github.com/zhengxwen/gdsfmt
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | # cteate a GDS file
f <- createfn.gds("test.gds")
node <- add.gdsn(f, "int", val=1:10000)
put.attr.gdsn(node, "missing.value", 10000)
f
sync.gds(f)
get.attr.gdsn(node)
# 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.