[問題] reticulate跑迴圈問題
[問題類型]:
程式諮詢(我想用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://www.ptt.cc/bbs/R_Language/M.1535362149.A.423.html
→
08/27 17:47,
6年前
, 1F
08/27 17:47, 1F
R_Language 近期熱門文章
PTT數位生活區 即時熱門文章