Comments (6)
I have implemented something similar in the RCalling.jl. Check https://github.com/randy3k/RCalling.jl/blob/master/src/sexp.jl#L28
from rcall.jl.
Ah, great thanks!
from rcall.jl.
Just one more thing, my code does not capture STDERR, we should also do redirect_stderr
!? (Somehow I have a feeling that the STDERR of R is re-directed to the STDOUT.)
EDIT:
I also discovered that the warning messages never print. They should be printed when a rprint
function is triggered.
julia> using RCall
julia> rcall(:warning, "it is a warning");
julia> rprint("1")
[1] 1
from rcall.jl.
On my machine they appear at the end of the Julia session.
julia> using RCall
julia> rcall(:warning,"hello")
StrSxp(536870992,Ptr{Void} @0x00007fb514770978,Ptr{Void} @0x00007fb5191af5c8,Ptr{Ptr{None}} @0x00007fb5191af5f0,1,0)
julia> quit()
Warning message:
hello
from rcall.jl.
I've changed the IO, and fixed the warning problem in #59
from rcall.jl.
Looks like i was too ambitious: Rf_PrintWarnings
doesn't work on linux (it's an unsupported function, but seems to work fine on Windows and OS X). Apparently we're not the only ones who want this, but it doesn't look like the r-dev team are in a hurry to fix it.
from rcall.jl.
Related Issues (20)
- 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 5
- [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 3
- 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 9
- 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 6
- Incorrect julia compat HOT 3
- Add support for TimeZones
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.