-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rjulia on Windows/RStudio #16
Comments
could you enable RStudio log (https://support.rstudio.com/hc/en-us/articles/200554756-RStudio-Application-Logs ) and see what happend? |
RStudio writes neither to I guess I will write an issue to RStudio Support. |
tested on my PC, found these 2 julia 0.39 and rjulia crash RStudio 0.99.442 (but run ok on RStudio-0.98.1103 ). this is RStudio 0.99.442 bug, to verify this just run following code ,it will crash rsession dyn.load('e:/julia/64/bin/libjulia.dll') 3 julia 0.4 and rjulia run on rstudio |
to solve this problem,there two way |
RStudio 0.99.442 still crashes on my machine when using Julia 0.4 nightly build and rjulia 0.4 branch at |
Don't load rjulia just run dyn.load('e:/julia/64/bin/libjulia.dll') on rstudio see what happens ,or try rstudio nightly build 99.591 |
|
on my PC both julia 0.3 and 0.4 run ok on RStudio-0.98.1103,so please stay on this version,don't use 0.99. |
btw your julia 0.4 is own build or download from julialang.org? mine is own build and it can run on rstudio 0.99.591 |
I use a 0.4 nightly build from julialang.org. It works in RStudio 0.98.1103, so it seems to be a problem with either RStudio 0.99 or the nightly build from julialang.org. I will file an issue to RStudio. |
thanks a lot |
I tried to install rjulia on Windows 7 64-bit with R-3.2.0 and julia-0.3.9. The latest version fixed the SRWLOCK issue. However, I am still stuck at the final linking step.
I installed julia-0.3.9 with the (Windows Self-Extracting Archive (.exe)) binary package from http://julialang.org/downloads/. I wonder if it is necessary to build julia from scratch. |
1 try add C:\Users\yanll\AppData\Local\Julia-0.3.9\bin to you system PATH |
I had already added the directory to PATH, otherwise R won't be able to find the correct julia path. The second method does not help either. I searched in my julia installation directory, and found that there is no any '.lib' or '.a' file. I tried also the Nightly build, but the same error exists. Therefore, I guess it is necessary to build julia from scratch. I will try this way. |
basically dynamic link on windows don't need .lib or .a file , just need libjulia.dll. build julia from scratch will not help. according you compile output, it is R package compile problem,normally R try to compile both 32 and 64 bit package,but your julia in system path is only 32bit or 64 bit, so need use this like @dgromer to compile rjulia devtools::install_github("armgong/RJulia", args = "--no-multiarch") |
Thanks! It works now. |
Building rjulia on Windows 7 64-bit with R 3.2.0 and Julia 0.3.9 (using
devtools::install_github("armgong/RJulia", args = "--no-multiarch")
fails with the following error:However, after adding a
Makevars.win
with the contents of theMakevars
plusPKG_CPPFLAGS+= -D_WIN32_WINNT=0x0600
(see JuliaLang/julia#9973) solved this problem.Now when loading the package from within RStudio, the R session crashes. When loading rjulia in a R session in cmd.exe everything works fine. Any ideas?
The text was updated successfully, but these errors were encountered: