Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix arxiv_cats #57

Merged
merged 17 commits into from
Jan 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: aRxiv
Title: Interface to the arXiv API
Version: 0.6
Date: 2021-12-06
Version: 0.7.2
Date: 2024-01-22
Authors@R: c(person("Karthik", "Ram", role="aut",
email="[email protected]", comment=c(ORCID = "0000-0002-0233-1757")),
person("Karl", "Broman", role=c("aut","cre"),
Expand All @@ -13,7 +13,7 @@ Description: An interface to the API for 'arXiv',
URL: https://docs.ropensci.org/aRxiv/, https://github.com/ropensci/aRxiv
BugReports: https://github.com/ropensci/aRxiv/issues
Depends:
R (>= 3.0.0)
R (>= 3.5.0)
License: MIT + file LICENSE
Imports:
httr,
Expand All @@ -28,5 +28,5 @@ Suggests:
VignetteBuilder: knitr
Encoding: UTF-8
LazyData: true
RoxygenNote: 7.1.2
RoxygenNote: 7.3.0
Roxygen: list(markdown = TRUE)
8 changes: 5 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,10 @@ inst/doc/aRxiv.html: vignettes/aRxiv.Rmd
cd $(<D); \
R -e "rmarkdown::render('$(<F)', output_dir='../$(@D)')"

data: data/arxiv_cats.RData
data: data/arxiv_cats.RData data/query_terms.RData

data/arxiv_cats.RData: inst/scripts/grab_api_manual_tables.R
# also data/query_terms.RData (built together)
data/arxiv_cats.RData: inst/scripts/grab_arxiv_cats.R
cd $(<D);R CMD BATCH $(<F)

data/query_terms.RData: inst/scripts/grab_query_terms.R
cd $(<D);R CMD BATCH $(<F)
9 changes: 9 additions & 0 deletions NEWS
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
aRxiv 0.7.2
-----------

MINOR CHANGES

* Update arxiv_cats, datasets with category information, and the scripts to
build that and the dataset query_terms.


aRxiv 0.6
---------

Expand Down
9 changes: 5 additions & 4 deletions R/arxiv_cats-data.R
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,12 @@
#'
#' @usage data(arxiv_cats)
#'
#' @format A data frame with two columns: the abbreviations of the
#' subject classifications (`abbreviation`) and the corresponding
#' description (`description`).
#' @format A data frame with five columns: the abbreviations of the
#' subject classifications (`category`), the field of study,
#' subfield of study (within Physics; `NA` otherwise), a short
#' description, and a longer description.
#'
#' @source <https://arxiv.org/help/api/user-manual>
#' @source <https://arxiv.org/category_taxonomy>
#'
#' @keywords datasets
#'
Expand Down
2 changes: 1 addition & 1 deletion R/query_terms-data.R
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
#'
#' @author Karl W Broman
#'
#' @source <https://arxiv.org/help/api/user-manual>
#' @source <https://arxiv.org/help/api/user-manual.html>
#'
#' @keywords datasets
#'
Expand Down
16 changes: 6 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@ https://www.repostatus.org/badges/latest/active.svg)](https://www.repostatus.org
computer science, mathematics, physics, quantitative biology,
quantitative finance, and statistics. The
[aRxiv](https://github.com/ropensci/aRxiv) package is an R interface to
the [arXiv API](https://arxiv.org/help/api/index).
the [arXiv API](https://arxiv.org/help/api/index.html).

Note that the arXiv API _does not_ require an API key.


## Package Status and Installation

[![R-CMD-check](https://github.com/ropensci/aRxiv/workflows/R-CMD-check/badge.svg)](https://github.com/ropensci/aRxiv/actions)
[![R-CMD-check](https://github.com/ropensci/aRxiv/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/ropensci/aRxiv/actions/workflows/R-CMD-check.yaml)
[![codecov](https://codecov.io/gh/ropensci/aRxiv/branch/master/graph/badge.svg)](https://app.codecov.io/gh/ropensci/aRxiv)
[![rstudio mirror downloads](https://cranlogs.r-pkg.org/badges/aRxiv?color=blue)](https://github.com/r-hub/cranlogs.app)

Expand Down Expand Up @@ -67,11 +67,11 @@ vignette("aRxiv", "aRxiv")
### Links

* [arXiv](https://arxiv.org)
* [arXiv API](https://arxiv.org/help/api/index)
* [arXiv API user manual](https://arxiv.org/help/api/user-manual)
* [arXiv API](https://arxiv.org/help/api/index.html)
* [arXiv API user manual](https://arxiv.org/help/api/user-manual.html)
* [Bulk data access to arXiv](https://arxiv.org/help/bulk_data)
* [Bulk data access to arXiv metadata via OAI-PMH](https://arxiv.org/help/oa/index)
* [Bulk data access to arXiv PDFs and source docs](https://arxiv.org/help/bulk_data_s3)
* [Bulk data access to arXiv metadata via OAI-PMH](https://arxiv.org/help/oa/index.html)
* [Bulk data access to arXiv PDFs and source docs](https://arxiv.org/help/bulk_data_s3.html)


### License
Expand All @@ -80,10 +80,6 @@ Licensed under the [MIT license](https://cran.r-project.org/web/licenses/MIT). (

---

This package is part of a richer suite called [fulltext](https://github.com/ropensci/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.

---

## Citation

Get citation information for `aRxiv` in R by running: `citation(package = 'aRxiv')`
Expand Down
Binary file modified data/arxiv_cats.RData
Binary file not shown.
Binary file modified data/query_terms.RData
Binary file not shown.
Loading