progress
parameter that you can pass htt::progress()
to get progress information; especially useful for long running queries (#124)dplyr::data_frame
with dplyr::tibble
(#126)preserve_exact_body_bytes
for tests for plosabstract and plosfigtabcaps to avoid non-ascii text problems on debian clang devel (#125)searchplos()
and all wrapper fxns to explain that internal pagination is used, but that users can do their own pagination if they like (#122)searchplos()
and all wrapper fxns. large numbers were being passed as scientific notation, fixed now (#123)vcr
and webmockr
packages for unit test stubbinghighbrow()
open pages with https://doi.org
instead of http://dx.doi.org
(#117)"Looping - printing progress ..."
from searchplos()
(#120)searchplos()
: were accidentally dropping fq
statements if more than 1, woopsy (#121)solrium
for under the hood Solr interaction instead of solr
package (#106)facetplos
, searchplos
, and highplos
lose parameter verbose
, and gain parameters error
and proxy
for changing how verbose error reporting is, and for setting proxy details, respectively.crul
instead of httr
for HTTP requests (#110)XML
with xml2
(#112)citations
function for PLOS rich citations is defunct as the service is gone (#113)tm
dropped from Enhances (#111)content-type
check for plos_fulltext()
function. XML can be either application/xml
or text/xml
(#108)random
parameter from citations()
function as it’s no longer available in the API (#103)dplyr::rbind_all()
for dplyr::bind_rows()
(#105)full_text_urls()
now gives back NA
when DOIs for annotations are given, which can be easily removed.full_text_urls()
function to create full text URLs for PLOS Clinical Trials correctly (#104)ggplot2
from Depends to Imports, and using @importFrom
for ggplot2
functions, now all imports are using @importFrom
(#99)httr::content()
to parse manually, and use explicit encoding of UTF-8
(#102)solr
dependency to require version v0.1.6
or less (#94)plos_fulltext()
to avoid unicode problems (#93)utils
, stats
, and methods
packages (#90)httr
v1
that broke rplos
when length 0 list passed to query
parameter (#89)citations()
for querying the PLOS Rich Citations API (http://api.richcitations.org/) (#88)vignettes/figure
to .Rbuildignore
as requested by CRAN admin (#87)searchplos()
now returns a list of length two, meta
and data
, and meta
is a data.frame of metadata for the search.RCurl
, data.table
, googleVis
, assertthat
, RJSONIO
, and stringr
(#79) (#82) (#84)dplyr
.jsonlite
from Suggests to Imports. Replaces use of RJSONIO
. (#80)crossref()
now defunct. See package rcrossref
https://github.com/ropensci/rcrossref. (#83)highplos()
now uses solr::solr_highlight()
to do highlight searches.searchplos()
, plosabstract()
, and other functions that wrap searchplos()
now use ...
to pass in curl options to httr::GET()
. You’ll now get an error on using callopts
parameter.isocodes
.plosword()
and plot_throughtime()
to have far less code, uses httr
now instead of RCurl
, but to the user, everything should be the same.rplos
behavior, and how to make them match, or match more closely (#76)?rplos
to go to help page.searchplos()
that are now not working for some unknown reason. (#81)limit=0
, we still gave back data, this is fixed, and now the meta
slot given back, and the data
slot gives an NA
(#85)asc
or desc
incorrectly with the sort
parameter. See the check_response()
function https://github.com/ropensci/rplos/blob/master/tests/testthat/test-check_response.R for examples.facetplos()
and highplos()
using the solr
R wrapper to the Solr indexing engine. The PLOS API just exposes the Solr endpoints, so we can use the general Solr wrapper package solr
to allow more flexible Solr searching.highbrow()
to visualize highlighting results in a browser.plos_fulltext()
to get full text xml of PLOS articles. Helper function full_text_urls()
constructs the URL’s for full text xml.check_response()
to check responses from the PLOS API, deals with capturing server error messages, and checking for correct content type, etc.crossref_r()
as we are working on a package for the CrossRef API.searchplos()
, plosauthor()
, plosfigtabcaps()
, plossubject()
, and plostitle()
were changed to match closer the Solr parameter names. terms
to q
. fields
to fl
. toquery
to fq
.fields
returndf
parameter is gone from searchplos()
, plosauthor()
, plosfigtabcaps()
, plossubject()
, and plostitle()
. You can easily get raw JSON, etc. data using the solr
package.httr
instead of RCurl
in plosviews()
function.plosabstract
, plosauthor
, plosfigtabcaps
, plossubject
, and plostitle
, that search specifically within those sections of papers now wrap searchplos
, so they should behave the same way.The almdateupdated
function has been deprecated - use almupdated
instead.
The articlelength
function has been deprecated - didn’t see the usefulness any longer.
In general simplified and prettified code.
Changed from using RCurl to httr in many functions, but not all.
Added more examples for many functions.
Added three internal functions: concat_todf
, addmissing
, and getkey
.
Added Karthik Ram as a package author.
All url
arguments in functions put inside functions as they are not likely to change that often.
Fixed crossref
function, and added more examples.
The alm
function (previously almplosallviews
) gains many ### new features: now allows up to 50 DOIs per call; you can specify the source you want to get alm data from as an argument; you can specify the year you want to get alm data from as an argument.
Added the plosfields data file to get all the possible fields to use in function calls.
almplosallviews
changed to alm
.
almplotallviews
changed to almplot
.
almevents
added to specifically search and get detailed events data for a specific source or N sources.
crossref_r
gets 20 random DOIs from Crossref.org.
Added package startup message.
journalnamekey
function to get the short name keys for each PLoS Journal.
ALM functions (any functions starting with alm) received updated arguments/parameters according to the ALM API version 3.0 changes.
Added tests.
almplosallviews
now outputs different output - two data.frames, one total metrics (summed across time), and history (for metrics for each time period specified in the search)
crossref
function returns R’s native bibtype format. See examples in crossref
function documentation
almpub
changed to almdatepub
changed help file rplos
to help
- use help(‘rplos’) in R
changed URL from http://ropensci.org/ to https://github.com/ropensci/rplos
added sleep argument to plosallviews
function to allow pauses between API calls when running plosallviews
in a loop - this is an attempt to limit hitting the PLoS API too hard
various other fixed to functions
more examples added to some functions
journalnamekey
to get short keys for journals to use in searching for specific journals