作者ppp1987 (ppp)
看板R_Language
标题[问题] reticulate跑回圈问题
时间Mon Aug 27 17:29:06 2018
[问题类型]:
程式谘询(我想用R 做某件事情,但是我不知道要怎麽用R 写出来)
[软体熟悉度]:
入门(写过其他程式,只是对语法不熟悉)
[问题叙述]:
大家好
现在我在使用reticulate这个套件
但在使用回圈时切换python和R时会无法顺利执行
想请问有没有人研究过如何用这个套件跑回圈
感谢
[程式范例]:
for(i in 1:5){
repl_python()
print("hello world")
exit
print(i)
}
[环境叙述]:
R version 3.4.2 (2017-09-28)
Platform: x86_64-apple-darwin15.6.0 (64-bit)
Running under: macOS Sierra 10.12.5
reticulate_1.9
[关键字]:
reticulate
--
※ 发信站: 批踢踢实业坊(ptt.cc), 来自: 61.216.90.96
※ 文章网址: https://webptt.com/cn.aspx?n=bbs/R_Language/M.1535362149.A.423.html
1F:→ andrew43: 应该没办法。还是把py档写好用system()去呼叫吧。 08/27 17:47