Load Julia bridge (.jl) files from a package's inst/julia/ directory
Source: R/julia_load_bridge.R
julia_load_bridge.RdReads each file as a string and evaluates it via
JuliaConnectoR::juliaEval() in the running Julia server. Bridge
files typically define helper functions used by the wrapping R
package; loading them once after package setup makes them available
to subsequent juliaCall() invocations.
Arguments
- package
Name of the calling R package (used as the
packageargument tosystem.file()). Files are looked up underinst/julia/of that package.- files
Character vector of
.jlfilenames (no directory).- verbose
If
TRUE, print a message per loaded file.
Examples
if (FALSE) { # \dontrun{
julia_load_bridge("ringbpjl",
c("dist_lookup.jl", "simulate.jl", "generation_time.jl"))
} # }