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
Hello, RCall.jl is such a great package that I use it everyday. Thank you all the contributors so much for the great work. I encountered the issue when using RCall.jl from Julia modules. I want to wrap ggplot2 functions in Julia function called plotr inside Julia module named SomeModule. I want to call this module for my research project, which is another module. I follow best practices from Modules · The Julia Language
This is my src/SomeModule.jl
module SomeModule
using RCall
export plotr
@rlibrary ggplot2
include("plot.jl")
end
This is src/plot.jl
functionplotr()
ggplot() +geom_density(aes(rand(10), rand(10)))
end
In REPL using SomeModule errors with (I truncated irrelevant hash)
julia>using SomeModule
[ Info: Precompiling SomeModule [.................]
ERROR: LoadError: Evaluation into the closed module`__anonymous__`
breaks incremental compilation because the side effects will not be permanent.
This is likely due to some other module mutating `__anonymous__` with `eval` during
precompilation - don't do this.
in expression starting at /home/milan/SomeModule/src/SomeModule.jl:1
ERROR: Failed to precompile SomeModule [.................] to /home/milan/.julia/compiled/v1.6/SomeModule/jl_ydAA1Z.
Stacktrace:
[1] compilecache(pkg::Base.PkgId, path::String, internal_stderr::Base.T
TY, internal_stdout::Base.TTY)
@ Base ./loading.jl:1360
How do I resolve the issue?
The text was updated successfully, but these errors were encountered:
Hello, RCall.jl is such a great package that I use it everyday. Thank you all the contributors so much for the great work. I encountered the issue when using RCall.jl from Julia modules. I want to wrap ggplot2 functions in Julia function called
plotr
inside Julia module namedSomeModule
. I want to call this module for my research project, which is another module. I follow best practices from Modules · The Julia LanguageThis is my src/SomeModule.jl
This is src/plot.jl
In REPL
using SomeModule
errors with (I truncated irrelevant hash)How do I resolve the issue?
The text was updated successfully, but these errors were encountered: