Comments (7)
Right now I can't even get as far as plotting. I am also using R version 3.1.2 and I get
julia> "pdf(file='/tmp/tt.pdf'); plot(x,y,type='l');dev.off()" |> reval
Error in plot.new() : the base graphics system is not registered
from rcall.jl.
The base graphics system works pretty well on my Ubuntu 14.04 and also on a Redhat server.
This might be OS dependent.
from rcall.jl.
I'm seeing the same problem as @dmbates (I'm on OS X). This seems a bit odd, but if I modify this line by changing Rembed
to R
, then the following works
using RCall
"pdf(file='/tmp/plt1.pdf')" |> rprint
"plot(1:10)" |> rprint
"dev.off()" |> rprint
after that, I can also use
"pdf(file='/tmp/plt2.pdf'); plot(1:10,(1:10)^2); dev.off()" |> rprint
without any problems. But, if I try it straight off the bat,
julia> using RCall
julia> "pdf(file='/tmp/plt2.pdf'); plot(1:10,(1:10)^2); dev.off()" |> rprint
signal (11): Segmentation fault: 11
sexp at /Users/simon/.julia/v0.3/RCall/src/sexp.jl:18
reval at /Users/simon/.julia/v0.3/RCall/src/iface.jl:11
reval at /Users/simon/.julia/v0.3/RCall/src/iface.jl:16
jl_apply at /Users/vagrant/buildbot/slave/package_osx10_9/build/src/gf.c:1418
rprint at /Users/simon/.julia/v0.3/RCall/src/iface.jl:32
jlcall_rprint_20749 at (unknown line)
jl_apply at /Users/vagrant/buildbot/slave/package_osx10_9/build/src/gf.c:1418
|> at operators.jl:178
jl_apply at /Users/vagrant/buildbot/slave/package_osx10_9/build/src/gf.c:1418
jl_apply at /Users/vagrant/buildbot/slave/package_osx10_9/build/src/interpreter.c:59
eval at /Users/vagrant/buildbot/slave/package_osx10_9/build/src/interpreter.c:207
jl_toplevel_eval_flex at /Users/vagrant/buildbot/slave/package_osx10_9/build/src/toplevel.c:496
jl_f_top_eval at /Users/vagrant/buildbot/slave/package_osx10_9/build/src/builtins.c:399
eval_user_input at REPL.jl:53
jlcall_eval_user_input_20177 at (unknown line)
jl_apply at /Users/vagrant/buildbot/slave/package_osx10_9/build/src/./julia.h:982
anonymous at task.jl:95
jl_apply at /Users/vagrant/buildbot/slave/package_osx10_9/build/src/task.c:423
julia_trampoline at /Users/vagrant/buildbot/slave/package_osx10_9/build/src/init.c:1032
*** caught segfault ***
address 0x7fa700000000, cause 'memory not mapped'
Possible actions:
1: abort (with core dump, if enabled)
2: normal R exit
3: exit R without saving workspace
4: exit R saving workspace
My version info:
julia> versioninfo()
Julia Version 0.3.7
Commit cb9bcae (2015-03-23 21:36 UTC)
Platform Info:
System: Darwin (x86_64-apple-darwin13.4.0)
CPU: Intel(R) Core(TM) i7-2677M CPU @ 1.80GHz
WORD_SIZE: 64
BLAS: libopenblas (USE64BITINT DYNAMIC_ARCH NO_AFFINITY Sandybridge)
LAPACK: libopenblas
LIBM: libopenlibm
LLVM: libLLVM-3.3
from rcall.jl.
Okay, this is getting even more strange.
I was trying to get this to play nice with IJulia, but something weird is happening. I save the output to a temporary png file:
rprint("png('/tmp/aa.png')")
rprint("plot(1:10)")
rprint("dev.off()")
which works fine (and can be re-run at this stage without any problems). Then I try to load the file using imread
from Images.jl (which itself works fine), but if I now re-run the above sequence, the second line throws:
Error in plot.new() : the base graphics system is not registered
Error occurred in R_tryEval
while loading In[8], in expression starting on line 1
in reval at /Users/simon/.julia/v0.3/RCall/src/iface.jl:5
in reval at /Users/simon/.julia/v0.3/RCall/src/iface.jl:12
in reval at /Users/simon/.julia/v0.3/RCall/src/iface.jl:16
in rprint at /Users/simon/.julia/v0.3/RCall/src/iface.jl:32
Any thoughts why this might be happening? I noticed Images.jl uses some OS X specific functionality, which may be causing conflicts somewhere. @timholy any suggestions for where I might look?
from rcall.jl.
Right now (RCall 0.2.0) every other works fine except
"""pdf();print(ggplot()+geom_line(aes(x=x, y=y)));dev.off()""" |> rprint
still causes a core dump.
But print
is not necessary so this issue can be closed.
from rcall.jl.
@panlanfeng,
it was due to a memory leak and should be fixed by 5f54e20.
from rcall.jl.
No more core dump.
Thanks for the fix!
from rcall.jl.
Related Issues (20)
- Error happens when you try to execute command ENV["R_HOME"] HOT 4
- libR.so in nonstandard location HOT 3
- why building RCall.jl failed during the registration of an package HOT 2
- RCall.jl failed to build with Conda (23.3.1) HOT 3
- "is.na() applied to non-(list or vector) of type 'language'" when passing a Julia's boolean variable to R's smooth.spline HOT 2
- Unable to Pkg.build RCall HOT 4
- Find the number of arguments for an RFunction? HOT 1
- loading RCall in atreplinit fails because of RPrompt HOT 1
- Error: attempt to apply non-function HOT 4
- [BUG] ArgumentError: malformed expression in formula HOT 3
- If julia functions which was brought to R throws an error, no real error is thrown, but an error object is returned #216 HOT 3
- Feature Request: Add possibility to build RCall without having R_HOME set HOT 2
- ERROR: UndefVarError: `val` not defined
- Segmentation fault on closing julia HOT 7
- equal `==` is not working on `reval` HOT 2
- Feature Request: Make RCall depend dynamically on `R_HOME` HOT 8
- Feature Request: show/display methods for R plots like ggplot2 HOT 3
- Could we add a point in the docs about setting up CI ? HOT 6
- ERROR: REvalError: Loading required package: mvtnorm HOT 1
- Difficulty installing RCall on a low version of julia HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rcall.jl.