Giter VIP home page Giter VIP logo

Comments (2)

kbroman avatar kbroman commented on June 20, 2024

I think the arXiv works best for searches that return a smaller number of documents, so if you're looking for a reproducible example, maybe focus on the results for a particular year.

res <- arxiv_search(
        "cat:hep-ph AND submittedDate:[1992 TO 1993]",
        limit=1000,
        batchsize=1000,
        sort_by="submitted",
        ascending=FALSE)

I don't know for sure, but I expect you're occasionally getting a connection error part-way through and getting truncated results.

from arxiv.

vgherard avatar vgherard commented on June 20, 2024

Thanks for your help, I see. I find several similar issues on the arXiv API google group, so that I guess the problem (if any) is from their part. I'll either try to limit my queries or switch to the OPI-PMH interface.

Just for the records (not a reprex, just an instance of what I was saying above):

library(aRxiv)


query <- "cat:hep-ph AND submittedDate:[2020 TO 2021]"

res <- arxiv_search(
    query,
    limit = 10000,
    batchsize = 1000,
    sort_by = "submitted", ascending = F
)
#> retrieved batch 1
#> retrieved batch 2
#> retrieved batch 3
#> retrieved batch 4
#> retrieved batch 5
#> retrieved batch 6

c(nrow(res), arxiv_count(query))
#> [1] 4100 6930

res <- arxiv_search(
    query,
    limit = 10000,
    batchsize = 1000,
    sort_by = "submitted", ascending = F
)
#> retrieved batch 1
#> retrieved batch 2
#> retrieved batch 3
#> retrieved batch 4

c(nrow(res), arxiv_count(query))
#> [1] 3000 6930

Created on 2021-07-18 by the reprex package (v2.0.0)

from arxiv.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.