Rpy2 not finding package

后端 未结 5 1026
时光说笑
时光说笑 2021-02-04 13:43

I\'m using Rpy2 on windows 7 64 and having trouble loading a package:

in R:

using(mi)

in python:

from rpy2.robjects         


        
5条回答
  •  盖世英雄少女心
    2021-02-04 14:13

    For me, in importr, the argument lib_loc inside it worked, putting the first path that appears in the output of .libPaths() in R, like:

    importr('name package', lib_loc="/home/nbarjest/R/x86_64-redhat-linux-gnu-library/3.4"),

    where the path is the path in the output example of the @Nbarjest answer.

提交回复
热议问题