swh.lister.cran

Add a lister to list all the CRAN packages .
It uses the build-in API in R language to list the packages
and get their metadata. 

Closes T1709
This commit is contained in:
Archit Agrawal 2019-06-09 00:21:42 +05:30 committed by Archit Agrawal
parent 7c6245e663
commit a9a37a85bf
12 changed files with 210 additions and 1 deletions

View file

@ -17,6 +17,7 @@ following Python modules:
- `swh.lister.pypi`
- `swh.lister.npm`
- `swh.lister.phabricator`
- `swh.lister.cran`
Dependencies
------------
@ -188,6 +189,17 @@ from swh.lister.gnu.tasks import gnu_lister
logging.basicConfig(level=logging.DEBUG)
gnu_lister()
## lister-cran
Once configured, you can execute a RCRAN lister using the following instructions in a `python3` script:
```lang=python
import logging
from swh.lister.cran.tasks import cran_lister
logging.basicConfig(level=logging.DEBUG)
cran_lister()
```
Licensing