RCall.jl icon indicating copy to clipboard operation
RCall.jl copied to clipboard

non standard evaluation issue of `qplot`

Open randy3k opened this issue 7 years ago • 2 comments

ggplot2's qplot uses rlang::enquos to capture the input expression. But we are passing the value instead of a promise so gplot fails to get the expression.

julia> qplot(1:10, 1:10)
ERROR: REvalError: Error: `expr` must quote a symbol, scalar, or call

randy3k avatar Aug 01 '18 21:08 randy3k

Have the same issue.

VPetukhov avatar Aug 17 '18 14:08 VPetukhov

Ya, it is also related to https://github.com/JuliaInterop/RCall.jl/issues/42

Implicitly, qplot roughly equals to rcall(:qplot, 1:10, 1:10). And qplot expects an expression input rather a numeric input.

randy3k avatar Aug 17 '18 17:08 randy3k