Closed xiaodaigh closed 5 years ago
I don't have access to a Windows version, and your example "works" on Mac OS.
The example is unlikely to be what you wanted to do, since it only defines a function in Julia without giving you any R proxy function to call it. Is that really what you tested?
Testing your example by juliaEval("%s(%s,%s)", regjl, x, y,.get=TRUE) where x and y were R numeric vectors returned something at least of a reasonable structure.
Without further information, I'll close this after a while.
xiaodaigh, can you try juliaEval("1+1")
and wait at least 1 minute to test the connection between Julia and R?
Are you running RStudio or plain R?
Try the below in Rstudio. The code just hangs there in the REPL and doesn't return anything. Also findJulia(test =TRUE)
returns true.
library(XRJulia)
findJulia(test = TRUE)
juliaEval("2+2")
I can't reproduce this behavior on XRJulia 0.76 / R 3.4.3 / RStudio 1.1.393 / Julia 0.6.1 / Windows 7 64-bit
Are you behind some kind of firewall or antivirus that may be blocking socket connections between processes?
You can try
library(XRJulia)
RJulia(verbose = TRUE)
Unfortunately, there is a bug in RStudio for Windows which causes you don't see std. output / error messages of processes started by system() or system2() in RStudio console (I reported it months ago). So if you get some error messages from Julia, you can't see it.
Ok. I tested it again on home computer it works.
On work computer it's got enterpise virus scans and firewall so am not sure how to diagnose that? Hopefully I can try with RJulia(verbose = T) and see how things go.
On Wed, Dec 20, 2017 at 8:59 PM, Václav Hausenblas <notifications@github.com
wrote:
I can't reproduce this behavior on XRJulia 0.76 / R 3.4.3 / RStudio 1.1.393 / Julia 0.6.1 / Windows 7 64-bit
Are you behind some kind of firewall or antivirus that may be blocking socket connections between processes?
You can try
library(XRJulia) RJulia(verbose = TRUE)
Unfortunately, there is a bug in RStudio for Windows which causes you don't see std. output / error messages of processes started by system() or system2() in RStudio console (I reported it months ago). So if you get some error messages from Julia, you can't see it.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/johnmchambers/XRJulia/issues/8#issuecomment-353019142, or mute the thread https://github.com/notifications/unsubscribe-auth/AESfJWp3mAh7ZrP4cdYGZo2vna1nJFT1ks5tCNp8gaJpZM4RCtQt .
-- ZJ
zhuojia.dai@gmail.com
It works on the computer at work now. Closing the issues!
The above works fine and returns the path to Julia.
When I run the below it just hangs and doesn't return.
Below is my session info and I am using JuliaPro 0.6.0.1