Created
October 16, 2015 18:02
-
-
Save nickgravish/b2a75f9c66461a7dc89a to your computer and use it in GitHub Desktop.
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
# for new ipython | |
%load_ext rpy2.ipython | |
import rpy2.robjects as robjects | |
from rpy2.robjects.packages import importr | |
import rpy2.robjects.packages as rpackages | |
from rpy2.robjects.vectors import StrVector | |
# This now installs the packages, so only need to run once | |
utils = rpackages.importr('utils') | |
utils.chooseCRANmirror(ind=2) # select the first mirror in the list | |
packnames = ("ggplot2", "scales", "lme4", | |
"multcomp", "contrast", "plyr", | |
"pwr", "car","leaps", "xtable", | |
"LMERConvenienceFunctions", 'segmented','lme4') | |
utils.install_packages(StrVector(packnames)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment