ropensci / oai

OAI-PMH R client
https://docs.ropensci.org/oai
Other
14 stars 4 forks source link

Dumpers #15

Closed mbojan closed 8 years ago

mbojan commented 8 years ago

This is an implementation of result dumpers (#9). I have written three prototypical dumper functions:

  1. Writing raw XML to text files
  2. Writing any R object (as determined by as) to .rds files
  3. Writing raw XML to a database.

Of course possibilities are endless.

All code and documentation is in R/dumpers.R. Functions are also documented in a single .Rd file. I have also added some tests and examples.

Using dumpers requires specifying dumper and, optionally, dumper_args to list_identifiers, list_sets or list_records. They are passed through ... to while_oai. Consequently, I believe it is not necessary to specify them as formal arguments to list_* functions.

mbojan commented 8 years ago

Done.

sckott commented 8 years ago

one of the 3 R versions failed, though just a Github 403 error, checking locally

mbojan commented 8 years ago

I noticed. Perhaps covr is being downloaded a lot by TravisCI and sometimes it fails.

Tests and checks passed on my R 3.2.2.

sckott commented 8 years ago

Perhaps covr is being downloaded a lot by TravisCI and sometimes it failes.

yeah, github downloads occasionally fail

sckott commented 8 years ago

thanks!