Description Usage Arguments Value Note Examples
Function to create a dataset in a file with extensible dimensions
1 | postDataset(url, domain, type, shape, maxdims)
|
url |
character string with http server url |
domain |
character string with domain name to be created |
type |
character string with dataset type like H5T_IEEE_F32LE |
shape |
numeric vector with initial dimensions of dataset |
maxdims |
numeric vector with maximum extent of each dimension or 0 for unlimited dimension |
r http response object
"http://170.223.248.164:7248/datasets"
1 2 3 4 5 6 7 8 9 10 | if (nchar(Sys.getenv("password"))>0) {
tstring = sub("\\/", "", tempfile(tmpdir=""))
dom = putDomain("http://170.223.248.164:7248", paste(tstring, ".hdfgroup.org", sep=""))
ds = postDataset(url="http://170.223.248.164:7248/datasets",
domain=paste(tstring, ".hdfgroup.org", sep=""),
type="H5T_IEEE_F32LE",
shape=c(10,5), maxdims=c(0,5))
ans = readBin(ds$content, what="character")
ans
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.