# Define the path to the demo database included with the package
db_path <- system.file("extdata", "biolife.db", package = "Rparadox")
# Open the file handle
pxdoc <- pxlib_open_file(db_path)
if (!is.null(pxdoc)) {
# Read all data into a tibble
biolife_data <- pxlib_get_data(pxdoc)
# Always close the file handle when finished
pxlib_close_file(pxdoc)
# Work with the data
print(biolife_data)
}
Run the code above in your browser using DataLab