datasnakes / beRi

beRi "beri environments for R installations" is an R environment, R installation, and R package management system for R
https://datasnakes.github.io/get-beri/
MIT License
14 stars 0 forks source link

Get updated CRAN mirros. #3

Closed grabear closed 6 years ago

grabear commented 6 years ago

Figure out how to properly parse HTML from the CRAN mirror site.

This works with pandas.read_html("https://cran.r-project.org/mirrors.html"), but it's still too messy to make any sense of it programatically.

BeautifulSoup4 should be of service.

grabear commented 6 years ago

Generate a YAML file that's kept somewhere in the users home or .config or wherever beRi's main files go. I think pip's are in .config.

grabear commented 6 years ago

This could also be done with r2py calls.

https://rpy2.readthedocs.io/en/version_2.8.x/robjects_rpackages.html#installing-removing-r-packages