【发布时间】:2018-02-12 18:28:11
【问题描述】:
我在 python 中开发了几个模块,我想将它们导入 rstudio RMarkdown 文件。但是,我不确定我该怎么做。
例如,我不能像我习惯在pycharm中那样做from code.extract_feat.cluster_blast import fill_df_by_blast as fill_df。
有什么提示吗?
谢谢。
【问题讨论】:
-
不,我没有使用它,我不确定这是否会有所帮助,因为我想要做的就是在我已经实现的 python 文件中导入一些模块(不使用 rstudi IDE。任何提示?
-
我确信您可以使用
reticulate包实现您的目标:阅读this post
标签: python rstudio r-markdown python-import