I\'m using R in my Python script through the rpy2 library and I need a package that is not in the default installation of R. How can I install it?
Ricardo's answer no longer works.
To install from Python:
from rpy2.robjects.packages import importr
utils = importr('utils')
utils.install_packages('DirichletReg')
That utils package is the R.utils package whose documentation can be found here: https://CRAN.R-project.org/package=R.utils
As of my last edit, the documentation still says to do this.