# NOT RUN {
# SimpleDarwinRecordSet examples
file <- system.file("examples", "example_simple.xml", package = "finch")
simple_read(file)
file <- system.file("examples", "example_simple_fossil.xml",
package = "finch")
simple_read(file)
# DarwinRecordSet examples
file <- system.file("examples", "example_classes_observation.xml",
package = "finch")
simple_read(file)
file <- system.file("examples", "example_classes_specimen.xml",
package = "finch")
simple_read(file)
# access elements of the object
file <- system.file("examples", "example_classes_specimen.xml",
package = "finch")
res <- simple_read(file)
## namespaces
res$meta
## locations
res$locations
## chunks, the first one
res$chunks[[1]]
# }
Run the code above in your browser using DataLab