私はrpy2を初めて使用し、importrを使用してRパッケージ「xts」および「quantmod」をインポートするのに問題があります。
コードは次のとおりです。
from rpy2.robjects.packages import importr
xts = importr('xts')
quantmod = importr('quantmod')
エラーは次のとおりです。
LibraryError: Conflict when converting R symbol in the package "xts" to a Python symbol (.subset.xts -> _subset_xts while there is already _subset_xts)
LibraryError: Conflict when converting R symbol in the package "quantmod" to a Python symbol (skeleton.TA -> skeleton_TA while there is already skeleton_TA)
'stats'、'graphics'、'zoo'、'ggplot2'など、他の多くのパッケージにインポーターを使用しても、この問題は発生しません。
バージョン:
- Pythonバージョン2.7.3
- Rバージョン2.15.2
- rpy2バージョン'2.3.0beta1'
どんな助けでも大歓迎です