I am doing scientific research, and I am having some trouble using an R package to treat my data.
I program in python using Google Colab, and I don't know much about R neither how to import and run R packages in python.
So far, what I did was to adapt a suggestion found in other post as follows:
pip install rpy2
# Using R inside python
import rpy2
import rpy2.robjects.packages as rpackages
from rpy2.robjects.vectors import StrVector
from rpy2.robjects.packages import importr
utils = rpackages.importr('utils')
utils.chooseCRANmirror(ind=1)
# Install packages
packnames = ('zCompositions')
utils.install_packages(StrVector(packnames))
# Load packages
zCompositions = importr('zCompositions')
This is the error message I'm getting:
Don't know if it helps, but here is all I found on the package (zCompositions) which I'm trying to import and run.
Do you think it is possible to run this package in Google Colab?