This repository has been archived by the owner on Sep 9, 2022. It is now read-only.
v0.4.0
NEW FEATURES
- Errors from the data provider are reported now. At least we attempt to do so when they are given, for example if you specify
asc
ordesc
incorrectly with thesort
parameter. See thecheck_response()
function for examples. - New functions
facetplos()
andhighplos()
using thesolr
R wrapper to the Solr indexing engine. The PLOS API just exposes the Solr endpoints, so we can use the general Solr wrapper packagesolr
to allow more flexible Solr searching. - New function
highbrow()
to visualize highlighting results in a browser. - New function
plos_fulltext()
to get full text xml of PLOS articles. Helper functionfull_text_urls()
constructs the URL's for full text xml.
BUG FIXES
- Fixed bug in tests where we forgot to give a key. No key is required per se, but PLOS encourages it so we prevent a call from happening without at least a dumby key.
- Added function
check_response()
to check responses from the PLOS API, deals with capturing server error messages, and checking for correct content type, etc.
IMPROVEMENTS
- Removed function
crossref_r()
as we are working on a package for the CrossRef API. - Parameter arguments in
searchplos()
,plosauthor()
,plosfigtabcaps()
,plossubject()
, andplostitle()
were changed to match closer the Solr parameter names.terms
toq
.fields
tofl
.toquery
tofq
. - Multiple values passed to
fields
returndf
parameter is gone fromsearchplos()
,plosauthor()
,plosfigtabcaps()
,plossubject()
, andplostitle()
. You can easily get raw JSON, etc. data using thesolr
package.- Now using
httr
instead ofRCurl
inplosviews()
function.