Created
March 20, 2021 05:24
-
-
Save jcheong0428/4f4194fb797219d4eed75ce4b44c3d91 to your computer and use it in GitHub Desktop.
Install R, Rpy2, LMER on Google Colab
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
!apt-get install r-base | |
!pip install -q rpy2 | |
packnames = ('lme4', 'lmerTest', 'emmeans', "geepack") | |
from rpy2.robjects.packages import importr | |
from rpy2.robjects.vectors import StrVector | |
utils = importr("utils") | |
utils.chooseCRANmirror(ind=1) | |
utils.install_packages(StrVector(packnames)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment