knitr::opts_chunk$set( collapse = TRUE, comment = "#>" )
Rxivist indexes articles from bioRxiv, a free preprint server by Cold Spring Harbor Laboratory. This package is a client for the Rxivist API and can be used to access metadata from:
To install rxivistr package, run:
devtools::install_github("ikodvanj/rxivistr")
Load the package using library()
function.
library(rxivistr)
Package contains following functions:
rxivist_search
- retrieves articles with the matching descriptionarticle_details
- retrieves data about a single paper and all of its authorsarticle_downloads
- retrieves monthly download statistics for articles.authors_rank
- retrieves top 200 authors in the specified category.author
- provides information about the specified author.category_list
- retrieves a list of all categoriesrxivist_stats
- retrieves basic statistics about the number of articles indexed by the Rxivist.In the following text, examples are provided for each function.
Following function retrieves articles top 5 most downloaded articles related to COVID-19:
res <- rxivist_search(search_phrase = "COVID-19", from = "alltime", sortby = "downloads", limit = 5) dplyr::glimpse(res)
At the time of writing this vignette, the most downloaded article had an id 72514. With the following function we will retrieve information about this article:
res <- article_details(72514) dplyr::glimpse(res)
To investigate the number of downloads, article_downloads
function can be used:
article_downloads(72514)
To retrieve top 200 authors based on the number of article downloads, authors_rank can be used:
res <- authors_rank() dplyr::glimpse(res)
With function author, we can retrieve more information about specific author.
author(295517)
This function returns a list of all categories to which articles are classified:
category_list()
Returns information about the number of articles indexed by the Rxivist.
res <- rxivist_stats() dplyr::glimpse(res)
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.