Releases: ropensci/rcrossref
Releases · ropensci/rcrossref
rcrossref v0.5.4
rcrossref v0.5.2
NEW FEATURES
- User-agent string is passed with every request to Crossref with
names and versions of this package, and its HTTP dependency packages:httr
andcurl
(whichhttr
depends on). Will potentially be useful to
Crossref to know how many requests come from this R client (#100)
DEPRECATED
cr_search()
andcr_search_free()
use old Crossref web services, so
are now marked deprecated, and will throw a deprecation message, but can
still be used. They will both be defunct inv0.6
of this package (#99)
MINOR IMPROVEMENTS
XML
replaced withxml2
(#98)httr::content()
calls: all parse to text then parse content
manually. in addition, encoding explicitly set toUTF-8
on
httr::content()
calls (#98)
BUG FIXES
rcrossref v0.5.0
Skipped v0.4
to v0.5
because of many changes - as described below.
NEW FEATURES
- Support added for 'deep paging' with the newer Crossref search API. Two new params added to each function:
cursor
, which accepts a cursor alphanumeric string or the special*
, which indicates that you want to initiate deep paging;cursor_max
, which is not in the Crossref API, but just used here in this package to indicate where to stop - otherwise, you'd get all results, even if there was 70 million, for example. A new internalR6
class used to make cursor requests easy (#77) - New function
id_converter()
to get a PMID from a DOI and vice versa (#49) - Added a Code of Conduct.
- New function
cr_types()
, along with its low level equivalentcr_types_()
for when you just want a list or json back (#92) - New suite of functions composing a low-level API for the Crossref search API. These functions only do data request, and return json or a list, and do not attempt to parse to a data.frame. The new functions:
cr_funders_()
,cr_journals_()
,cr_licenses_()
,cr_members_()
,cr_prefixes_()
,cr_types_()
,cr_works_()
. These functions are a bit faster, and aren't subject to parsing errors in the event of a change in the Crossref API. (#93) - Added new
filter_names()
andfilter_details()
functions to get information on what filters
are available, the expected values, and what they mean.
MINOR IMPROVEMENTS
- Added documentation for new filter types, and added them to list of filters for
filter_names()
andfilter_details()
(#73) cr_funders()
alias added tocr_fundref()
(#74)- Made note in docs that funders without IDs don't show up on the
/funders
route,s incr_funders()
(#79) - Made note in docs that
sample
parameter ignored unlessworks=TRUE
(#81) - Added note to docs that only what is returned in the API is what is searched when you search the Crossref API - that is, abstracts and full text aren't searched (#91)
cr_cn()
now checks that the user supplied content-type is supported for the DOI minting agency associated with the DOI (#88) (thanks @njahn82)- Removed
.progress
parameter use internally where it wasn't applicable. sample
parameter dropped fromcr_licenses()
.cr_works()
parsing changed. We now don't attempt to flatten nested arrays, but instead give them back as data.frame's nested within the main data.frame. For example,author
often has many entries, so we return that as a single column, but indexing to that column gives back a data.frame with a row for each author, and N number of columns. Hopefully this doesn't break too much code downstream :)- Additional text added to the package level man file (
?rcrossref
) to explain: what you're actually searching when you search; deprecated and defunct functions; and explanation of high vs. low level API.
BUG FIXES
- Fix to
cr_members()
to warn on error instead of stop during parsing (#68) - Fix to internal parser for
cr_works()
to output links data, for full text links (#70) - Minor fix in
cr_cn()
example that didn't work (#80) - Fixed parsing of
affiliation
data insideauthor
object in Crossref search API returned data (#84) - Fixed parsing of funder
award
slot in Crossref search API returned data (#90)
DEPRECATED
rcrossref 0.3.4
v0.3.0
NEW FEATURES
- New function
extract_pdf()
to extract text from pdfs - New function
cr_ft_links()
to get links for full text content of an article (#10) - New function
cr_ft_text()
to gets full text content of an article. In addition,
cr_ft_pdf()
,cr_ft_plain()
, andcr_ft_xml()
are convenience functions that will get
the format pdf, plain text, or xml, respectively. You can of course specify format in the
cr_ft_text()
function with thetype
parameter (#10) (#42)
MINOR IMPROVEMENTS
- Filled out more tests (#45)
BUG FIXES
- No longer assign queried doi to the
data.frame
incr_works()
, which caused failure if
a non-Crossref DOI included (#52) pmid2doi()
anddoi2pmid()
functions removed temporarily as the web service is down
temporarily, but will be online again soon from Crossref (#48)
Binaries
- Windows binary: rcrossref_0.3.0.zip