pkgsearch icon indicating copy to clipboard operation
pkgsearch copied to clipboard

Direct usage of the crandb database

Open Polkas opened this issue 3 years ago • 3 comments

I am a developer of a few CRAN packages and currently I am working on https://github.com/Polkas/pacs. The crandb is a very valuable data source. I want to use a direct calls to the crandb database as I need a custom call and want to reduce the imports (dependencies). The call I want to use https://crandb.r-pkg.org/-/allall?keys=["%s"]&limit=1000, where the maximum call is still 500 packages (I tested it). The reference to this package is added to each of my functions roxygen2, which will use this functionality. I will feel much more comfortable if you confirm you are open this move, before I transfer it to the production. Ps. The alternative solution which I introduced is to ask directly the CRAN webpage and the GitHub CRAN mirror (created by metacran too:)). Thank you for your time.

Polkas avatar Feb 27 '22 09:02 Polkas

It is fine to use it directly. I might need to introduce smaller limits in the future, though, if these queries slow down the DB.

gaborcsardi avatar Feb 27 '22 14:02 gaborcsardi

Great, thank you for such a quick response. Is there a way to support metacran? I think of some donation page:) I hope you will announce such limitation move in the future.

Polkas avatar Feb 27 '22 14:02 Polkas

Btw. I am using memoise package in this project so at least I limit the CRAN/CRANDB queries if sb repeats any call.

Polkas avatar Feb 27 '22 15:02 Polkas