Groups
Groups
Sign in
Groups
Groups
R軟體使用者論壇
Conversations
About
Send feedback
Help
R可以製作成exe檔嗎?
1,664 views
Skip to first unread message
scherz...@gmail.com
unread,
Nov 2, 2015, 10:35:23 PM
11/2/15
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to R軟體使用者論壇
如題,因為考慮到一些人不會用R,可否利用R當運算跟分析的工具包在一個exe裡面
He-chien Tsai
unread,
Nov 4, 2015, 8:26:11 PM
11/4/15
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to R軟體使用者論壇
若會用Python的話是有一招, 用RPy2從Python呼叫R, 再用Nuitka把Python編譯成可執行檔
由於Nuitka有特別的功能, 只要丟進--recurse-all跟
--standalone兩個參數, 他就會把所有依賴的C函式庫都連接起來, 也就順便把R語言的C函式庫也連起來了, 所以在別的機器不用建立R環境也能執行
, 但檔案會很巨大
參考網址
http://rpy2.readthedocs.org/en/version_2.7.x/getting-started.html
http://nuitka.net/doc/user-manual.html
scherz...@gmail.com
於 2015年11月3日星期二 UTC+8上午11時35分23秒寫道:
如題,因為考慮到一些人不會用R,可否利用R當運算跟分析的工具包在一個exe裡面
賴彥廷
unread,
May 4, 2016, 3:45:41 AM
5/4/16
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to R軟體使用者論壇
如果可以幫對方安裝R軟體
就可以用Rscript的方式執行R編碼
我自己是弄成.bat檔案
開一個記事本輸入
>cd C:\Rdata
>RScript xxx.R
第一行放你的setwd位置
第二行執行存好的.R檔案可以了
可以參考
http://laikokolo.pixnet.net/blog/post/86973887-%E5%A6%82%E4%BD%95%E5%B0%87markdown%E8%A3%BD%E4%BD%9C%E7%9A%84.rmd%E6%AA%94%E4%BB%A5.bat%E6%AA%94%E7%94%B1%E7%B3%BB%E7%B5%B1%E8%87%AA%E5%8B%95
Reply all
Reply to author
Forward
0 new messages