# NOT RUN {
# }
# NOT RUN {
# prepare object to write to kvh file
obj=list(x=structure(1:3, names=letters[1:3]), R=R.version)
# write it
obj2kvh(obj, "test", "test.kvh") # will create test.kvh file
# read it back
l=kvh_read("test.kvh")
# check a field
l$test$x # NB. it has a character values put in a list not a numeric vector as it was in obj.
# }
Run the code above in your browser using DataLab