Importing any function from an R package into python
问题 While using the rpy2 library of Python to work with R. I get the following error message while trying to import a function of the bnlearn package : # Using R inside python import rpy2 import rpy2.robjects as robjects 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 = ('visNetwork', 'bnlearn') utils.install_packages