# NOT RUN {
if(hql_is_loaded()){
tf = tempfile(fileext = ".h5")
hql_create_file(tf)
hql_use_file(tf)
x = matrix(rnorm(100), nrow = 20)
hql_write_dataset(x, "dataset0")
hql_write_attribute("normal", "dataset0/dist")
y = month.name
attr(y, "abbreviation") = month.abb
attr(y, "number") = 1:12
hql_write_dataset(y, "group1/dataset1")
hql_read_dataset("dataset0")
hql_read_dataset("group1/dataset1")
hql_read_attribute("group1/dataset1/abbreviation")
hql_read_all_attributes("group1/dataset1")
hql_close_file(tf)
}
# }
Run the code above in your browser using DataLab