Comments (7)
Would an @R
macro work? I suspect many R expressions are also valid Julia syntax, and that way one would benefit from syntax highlighting. Though it certainly makes sense to have a non-standard string literal, in particular if one wants to write several lines of R code using """
.
from rcall.jl.
I suspect many R expressions are also valid Julia syntax, and....
I can list a number of exceptions
- list subset
list$abc
andlist[["abc"]]
- variable names containing dots, e.g.,
obj.num1
%*%
,%%
,%in%
, etc and user defined operators.- assignment
<-
and<<-
I believe that R_str
with """
quote is much flexible than @R
macro,
> R"""
f <- function(x){
x^2
}
f(2)
"""
from rcall.jl.
I actually made a start on this on the rstr
branch, currently unfinished. The idea was to support $
substitution whenever the $
was invalid in R, so that something like
R"sum(a$b)"
would be normal R syntax (looking up the b
field of a
, but
R"sum($b)"
would insert the Julia object b
into the expression.
from rcall.jl.
Any further progress, Simon? I am running a workshop on "Julia for Statisticians" where RCall is extremely useful and would like to give a general prescription of
R"""
# your R code here
"""
from rcall.jl.
Not yet. I'm looking at some other RCall improvements, so I might try to see what I can do in the next few days.
from rcall.jl.
@simonbyrne Let me know if I can help in some way.
Would it be worthwhile dropping support for v0.3 in addition to other changes? That could simplify the inline documentation and allow for removal of some of the calls to @compat
from rcall.jl.
I was going to do that. I also want to get precompilation working.
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.