You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The prompt pasting support now in base is great, but it would be even better if it could recognise REPL modes. In particular where you have an example of language switching, such as after loading RCall:
julia> a =22
julia>@rput a
2
R> a
[1] 2
R> b <- a +1
julia>@rget b
3.0
julia> b
3.0
If I paste that into the REPL, I get:
julia> a =22
julia>@rput a
2
julia>@rget b
ERROR: BoundsError
Stacktrace:
[1] getindex at /Users/richardr/.julia/v0.6/RCall/src/methods.jl:461 [inlined]
[2] getindex(::Ptr{RCall.EnvSxp}, ::Symbol) at /Users/richardr/.julia/v0.6/RCall/src/methods.jl:464
[3] getindex(::RCall.RObject{RCall.EnvSxp}, ::Symbol) at /Users/richardr/.julia/v0.6/RCall/src/methods.jl:465
julia> b
ERROR: UndefVarError: b not defined
and it would be great if it respected the mode switches and so just worked as well...
The text was updated successfully, but these errors were encountered:
Pasting based on mode was added to the base REPL in 1.7 (JuliaLang/julia#40604), though it's currently undocumented (JuliaLang/julia#49377), and works with OhMyREPL too (at least in 1.8 and 1.9 which is what I've tried -- and I had to update from 0.5.13 to 0.5.20 for it to work properly).
The prompt pasting support now in base is great, but it would be even better if it could recognise REPL modes. In particular where you have an example of language switching, such as after loading
RCall
:If I paste that into the REPL, I get:
and it would be great if it respected the mode switches and so just worked as well...
The text was updated successfully, but these errors were encountered: