Description Usage Arguments Details Value Examples
Request an API key from the Digital Public Library of America (DPLA).
1 | dpla_get_key(email, ...)
|
email |
(character) An email address. |
... |
Curl options passed on to |
You are required to have an API key to use rdpla. To get one,
use dpla_get_key
for getting a key programatically.
After getting the key, you can pass the key as a parameter to rdpla
functions, but we recommend storing the key on your machine, since not
exposing your key in your files that may end up on the web is good
practice. Store your key either as an environment variable in your
.Renviron
file or similar like DPLA_API_KEY=<yourkey>
,
or as an R option in your .Rprofile
file like
options(dpla_api_key = "<yourkey>")
. Either will be read in
when you call rdpla functions. Make sure to restart your R session
after storing your key as either env var or R option.
On success, a message that your API key will be emailed to you.
1 2 3 4 | ## Not run:
# dpla_get_key(email="stuff@thing.com")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.