cran: Improve listing of R packages
Previously, the lister was relying on the use of the CRANtools R module but it has the drawback to only list the latest version of each registered package in the CRAN registry. In order to get all possible versions for each CRAN package, prefer to exploit the content of the weekly dump of the CRAN database in RDS format. To read the content of the RDS file from Python, the rpy2 package is used as it has the advantage to be packaged in debian. Related to swh/meta#1709.
parent
3a0e8b99
No related branches found
Tags v5.9.7
Showing
- mypy.ini 6 additions, 0 deletionsmypy.ini
- requirements-test.txt 1 addition, 0 deletionsrequirements-test.txt
- requirements.txt 1 addition, 0 deletionsrequirements.txt
- swh/lister/cran/list_all_packages.R 0 additions, 9 deletionsswh/lister/cran/list_all_packages.R
- swh/lister/cran/lister.py 70 additions, 104 deletionsswh/lister/cran/lister.py
- swh/lister/cran/tests/data/list-r-packages.json 0 additions, 32 deletionsswh/lister/cran/tests/data/list-r-packages.json
- swh/lister/cran/tests/test_lister.py 159 additions, 115 deletionsswh/lister/cran/tests/test_lister.py
Loading
-
mentioned in merge request swh-docs!363 (merged)
-
mentioned in merge request !511 (merged)
Please register or sign in to comment