I'm trying to install "pcaMethods" from Bioconductor using rpy2 in a Python Jupyter notebook.
This is what I tried
from rpy2.robjects.packages import importr
utils = importr('utils')
utils.install_packages('mice') # all of this works
base = importr('base')
base.source("http://www.bioconductor.org/biocLite.R")
biocinstaller = importr("BiocInstaller") # this doesn't work
biocinstaller.biocLite("pcaMethods") # this doesn't work
# load the installed package
pcaMethods = importr("pcaMethods")
This is the error I get when I try to install pcaMethods
:
Error in if (answer %in% allowed) break : argument is of length zero
Anyone know what I'm doing wrong?