Interface to the arXiv API

An interface to the API for 'arXiv' (< https://arxiv.org>), a repository of electronic preprints for computer science, mathematics, physics, quantitative biology, quantitative finance, and statistics.


Travis build status Appveyor build status CRAN_Status_Badge codecov.io

arXiv is a repository of electronic preprints for computer science, mathematics, physics, quantitative biology, quantitative finance, and statistics. The aRxiv package is an R interface to the arXiv API.

Note that the arXiv API does not require an API key.

Installation

You can install the package via CRAN:

install.packages("aRxiv")

Or use devtools::install_github() to get the (more recent) version at GitHub:

install.packages("devtools")
library(devtools)
install_github("ropensci/aRxiv")

Basic usage

The main function is arxiv_search(). Here's an example of its use:

library(aRxiv)
z <- arxiv_search(query = 'au:"Peter Hall" AND cat:stat*', limit=50)
str(z)

Tutorial

An aRxiv tutorial is available at the rOpenSci website, here.

To view the tutorial from R, use:

vignette("aRxiv", "aRxiv")

Links

License

Licensed under the MIT license. (More information here.)


This package is part of a richer suite called fulltext, along with several other packages, that provides the ability to search for and retrieve full text of open access scholarly articles. We recommend using fulltext as the primary R interface to arXiv unless your needs are limited to this single source.


ropensci footer

News

aRxiv 0.5.16

BUG FIXES

  • To eliminate continued pain over empty search queries, just trap them in advance and don't send them to arXiv.

aRxiv 0.5.15

BUG FIXES

  • Results for empty search queries seems to have changed; fixed to give appropriate return values.

aRxiv 0.5.10

BUG FIXES

  • Fix a small problem related to a new behavior in a pre-release version of the httr package. (httr is no longer dropping NULLs from the POST search body.)

  • Fix a test error, that arose due to a change in the order of records returned by a query.

aRxiv 0.5.8

BUG FIXES

  • arXiv connection errors was causing test errors. Added a function to test connection to arXiv; tests are skipped if we can't connect.

  • try to avoid many of the tests on CRAN, where intermittent test errors will cause universal headaches.

aRxiv 0.5.5

BUG FIXES

  • Fix mistakes in the table in the help for arxiv_search that describes the output.

  • When searching in batches, arxiv_search could return more than the requested limit.

  • Fix tests of date range; a new 2013 arXiv manuscript changed the expected count.

aRxiv 0.5.2

NEW FEATURES

  • released to CRAN

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("aRxiv")

0.5.19 by Karl Broman, 10 days ago


https://github.com/ropensci/aRxiv


Report a bug at https://github.com/ropensci/aRxiv/issues


Browse source code at https://github.com/cran/aRxiv


Authors: Karthik Ram [aut] , Karl Broman [aut, cre]


Documentation:   PDF Manual  


Task views: Web Technologies and Services


MIT + file LICENSE license


Imports httr, utils, XML

Suggests devtools, knitr, rmarkdown, roxygen2, testthat


Imported by fulltext.


See at CRAN