ropensci-archive / pubchunks

:warning: ARCHIVED :warning: Get chunks of XML format scholarly articles
Other
8 stars 0 forks source link

how does one combine outputs of independent calls to `pub_chunks` #5

Closed sckott closed 6 years ago

sckott commented 6 years ago

ah right, we have the following option:

  1. pass in many files or XML character strings in a list, or
x <- system.file("examples/elsevier_1.xml", package = "pubchunks")
z <- system.file("examples/hindawi_1.xml", package = "pubchunks")
pub_chunks(list(x, z), "title")

But this should work too:

  1. many calls to pub_chunks combined into a list

but fails right now

x <- system.file("examples/elsevier_1.xml", package = "pubchunks")
z <- system.file("examples/hindawi_1.xml", package = "pubchunks")
pub_tabularize(list(pub_chunks(x, "title"), pub_chunks(z, "title")))
#> Error in if (attr(x, "ft_data")) { : argument is of length zero
sckott commented 6 years ago

done in 37f676d