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)
- Segfault when loading R units package in a task HOT 2
- Problem installing Rcall
- Problems after updating R HOT 1
- Ambiguity with missing HOT 1
- ERROR: Could not determine command HOT 1
- Warning in Julia 1.7 HOT 2
- Cannot install RCall on MacOS Big Sur HOT 8
- Is RCall known not to work on M1 Macs? HOT 3
- Get rid of raw pointer (Ptr{XSxp}) interfaces
- Proper Way to Load Libraries in .Rprofile HOT 2
- rcopytype with multiple S3 classes
- RCall Segmentation Faults to Terminal upon package loading HOT 1
- Trouble while trying to install RCall package HOT 1
- Suppress output other than plot with RCall.ijulia_setdevice HOT 8
- Segfault and Unknown Function HOT 4
- error in install 'Rcall'. HOT 3
- Ambiguous convert HOT 2
- Failed to precompile RCall on Julia v1.8 HOT 8
- Windows CI cannot find R shared library on x86 HOT 4
- segfault with R-devel
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.