Description Usage Arguments Details See Also
Type-/length-stable, defensive and cached variant of rcrossref::cr_works()
.
1 |
x |
A vector created by, or convertable to |
... |
Arguments passed on to
|
This wrapper changes the underlying behavior as follows:
vectorised by purrr::map_dfr()
all warnings and empty returned rows are raised to errors
returns type stably and length stably (in rows)
caches individual DOI results
retries on failed attempts
returns only the data element
This function is still defensive;
it will error out if attempts fail or inputs are bad.
That is what makes it type stable/length stable.
It is the callers responsibility to use purrr::possibly()
,
and recover from errors by giving some otherwise
default.
This cannot be done here,
because the caller must determine what a useful default is.
This weirdness can be resolved when we always test
and return individual fields as per
https://github.com/subugoe/metacheck/issues/183.
Other import:
get_cr_md()
,
pretests()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.