我想在Kaggle Kernel里面同时使用R和Python语言。因此,当运行
!pip install rpy2
在Kaggle Notebook中,我得到了以下错误信息。
Error: rpy2 in API mode cannot be built without R in the PATH or R_HOME defined. Correct this or force ABI mode-only by defining the environment variable RPY2_CFFI_MODE=ABI
我发现了一个 解决办法 为R内Python的用户提供,但还没有提供在Kaggle Kernel内调用R的解决方案。