Searching
The search functionality comes from the general search form interface, so the search may not be at the granularity you desire without further parsing of results. This is the equivalent of the search box on the main landing page of http://biorxiv.org
library(biorxivr)
## Loading required package: XML
bxEco <- bx_search("Ecology",limit = 10)
summary(bxEco)
## $URL
## URL
## [1,] "http://www.biorxiv.org/content/early/2015/09/28/027110"
## [2,] "http://www.biorxiv.org/content/early/2015/09/30/027839"
## [3,] "http://www.biorxiv.org/content/early/2014/12/14/012666"
## [4,] "http://www.biorxiv.org/content/early/2014/09/02/003657"
## [5,] "http://www.biorxiv.org/content/early/2015/09/07/026260"
## [6,] "http://www.biorxiv.org/content/early/2014/09/17/009274"
## [7,] "http://www.biorxiv.org/content/early/2015/01/07/008813"
## [8,] "http://www.biorxiv.org/content/early/2015/10/07/022483"
## [9,] "http://www.biorxiv.org/content/early/2013/11/14/000364"
## [10,] "http://www.biorxiv.org/content/early/2014/09/11/009001"
##
## $ID
## [1] "early/2015/09/28/027110" "early/2015/09/30/027839"
## [3] "early/2014/12/14/012666" "early/2014/09/02/003657"
## [5] "early/2015/09/07/026260" "early/2014/09/17/009274"
## [7] "early/2015/01/07/008813" "early/2015/10/07/022483"
## [9] "early/2013/11/14/000364" "early/2014/09/11/009001"
##
## $found
## [1] 212
##
## $query
## [1] "Ecology"
##
## $limit
## [1] 10
##
## attr(,"class")
## [1] "summary.bxso"
This will return a search results object that has the URL’s for your search results. If you want to get details about all your search results we can extract basic features like DOI, Authors, e-mails, title, abstract text, date as well as metrics on views and downloads.
bxEcoDetails <- bx_extract(bxEco)
bxEcoDetails[[1]]
## $authors
## $authors$names
## [1] "Edmund Hart" "Nicholas Gotelli"
##
##
## $paper
## $paper$title
## [1] "Climate change triggers morphological and life-history evolution in response to predators"
##
## $paper$date
## [1] "2013-12-10"
##
## $paper$DOI
## [1] "10.1101/001263"
##
## $paper$fulltext_url
## [1] "http://d2538ggaoe6cji.cloudfront.net//content/biorxiv/early/2013/12/05/001263.full.pdf"
##
##
## $metrics
## date Abstract PDF
## 1 2013-12-01 146 35
## 2 2014-01-01 34 30
## 3 2014-02-01 25 17
## 4 2014-03-01 34 2
## 5 2014-04-01 17 30
## 6 2014-05-01 36 5
## 7 2014-06-01 22 9
## 8 2014-07-01 56 15
## 9 2014-08-01 35 8
## 10 2014-09-01 64 11
## 11 2014-10-01 43 20
## 12 2014-11-01 24 12
## 13 2014-12-01 25 14
## 14 2015-01-01 28 13
## 15 2015-02-01 14 9
## 16 2015-03-01 27 22
## 17 2015-04-01 21 10
## 18 2015-05-01 40 23
## 19 2015-06-01 8 8
## 20 2015-07-01 11 8
## 21 2015-08-01 9 6
## 22 2015-09-01 13 0
## 23 2015-10-01 7 7
##
## attr(,"class")
## [1] "biorxiv_paper"
There’s also some basic plotting functionality that will allow you plot views and downloads
Plot views the number of views an abstract.
plot(bxEcoDetails[[1]],type="abs")
Plot the number of PDF downloads.
plot(bxEcoDetails[[1]],type="dl")
Finally, you can easily download PDF’s from all your search results.
bx_download(bxEco,"~/biorxiv_pdfs")