Skip to contents

xml_index() creates an index for the XML file retrieved from PubMedCentral, storing the index in the DuckDB database. Use xml_xpath() to query the index.

Usage

xml_index(xml_file = "pmc_result.xml", db)

Arguments

xml_file

character(1) file path to the PubMedCentral XML file.

db

a database object returned by pmcbioc_db() with read_only = FALSE.

Value

xml_index() returns the pmcbioc_db database argument db.