yihui / runr

Run external programs from R (experimental)
85 stars 31 forks source link

Start Julia problem #6

Open jzen188 opened 9 years ago

jzen188 commented 9 years ago

Hi yihui, I am trying your runr package in this moment. My machine is window 7, 32bit... After I set up the environment path, I can call julia in the window cmd promt. The Sys.which("julia") can return bin\ address. I am using R 3.0.2 and the newest rstudio version 0.98.1062 right now. But when I try your example. j$start() Rstudio occur red stop label on the console top and can't conect to julia...Keep waiting..

I am using julia 0;3.1 right now. Sys.which return this.

Sys.which("julia") julia "D:\JULIA-~1.1\bin\julia.exe"

I set up julia at D:\Julia-0.3.1 Path variable I set this: D:\Julia-0.3.1;D:\Julia-0.3.1\bin;

yihui commented 9 years ago

I can reproduce the problem on Windows, but sorry I have no idea why it happens in RStudio. In the default R GUI, it works fine except j$stop() hangs.

jzen188 commented 9 years ago

Hi yihui, Thank you for your reply. There is warning from knitr because I am using the old labtop R 3.0.2.... When I use the default R GUI, j$start() can run but can't run any julia code even I run your example knitr_.....

labtop shows me a window check from firewall but I have no idea of that....Maybe this will start a good hint you find where is wrong. (I remember once time I install Hadoop in linux and set up the configuration no work...after I follow the set up of firewall/ssh, it worked...)

I check the window task management (ctrl + alt + del) it shows the julia.exe is on the process. (window 任务管理器-》进程栏 有 julia.exe运行,原谅我坚持蹩脚英文,预防其他非中文用户遇到此类情况).j$stop() again load and julia.exe can't terminate until I manually stop it then the j$stop() end its process..

In case the julia code not being exeucuted is because my R version 3.0.2 not fitting knitr least requirement R version, I install a R 3.1.1 from Revolution R open....again...it not work...

yihui commented 9 years ago

The firewall issue is no big deal. You can give Julia access to the network.

I have never tested it on Windows until you brought it up, and I have no idea why it hangs on Windows. Sorry.

jzen188 commented 9 years ago

Thank you,