From fbf66c44899dfb6862eb4a5eae069c4ba7ea470a Mon Sep 17 00:00:00 2001 From: Scott Chamberlain Date: Fri, 3 Nov 2017 07:51:37 -0700 Subject: [PATCH] fix non ascii character --- R/rplos-package.R | 2 +- man/rplos.Rd | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/R/rplos-package.R b/R/rplos-package.R index fd08cd5..3286d29 100644 --- a/R/rplos-package.R +++ b/R/rplos-package.R @@ -28,7 +28,7 @@ #' #' "Please limit your API requests to 7200 requests a day, 300 per hour, 10 per #' minute and allow 5 seconds for your search to return results. If you exceed this -#' threshold, we will lock out your IP address. If you’re a high-volume user of +#' threshold, we will lock out your IP address. If you're a high-volume user of #' the PLOS Search API and need more API requests a day, please contact us at #' api@plos.org to discuss your options. We currently limit API users to no more #' than five concurrent connections from a single IP address."" diff --git a/man/rplos.Rd b/man/rplos.Rd index 51ba6a0..ea5e152 100644 --- a/man/rplos.Rd +++ b/man/rplos.Rd @@ -30,6 +30,24 @@ See the rOpenSci website for a tutorial: https://ropensci.org/tutorials/rplos_tutorial.html } +\section{Throttling}{ + +Beware, PLOS recently has started throttling requests. That is, +they will give error messages like "(503) Service Unavailable - +The server cannot process the request due to a high load", which +probably means you've done too many requests in a certain time period. + +Here's what they say (http://api.plos.org/solr/faq/#solr_api_recommended_usage) +on the matter: + +"Please limit your API requests to 7200 requests a day, 300 per hour, 10 per +minute and allow 5 seconds for your search to return results. If you exceed this +threshold, we will lock out your IP address. If you're a high-volume user of +the PLOS Search API and need more API requests a day, please contact us at +api@plos.org to discuss your options. We currently limit API users to no more +than five concurrent connections from a single IP address."" +} + \examples{ \dontrun{ searchplos(q='ecology', fl=c('id','publication_date'), limit = 2)