JuliaInterop / JuliaCall

Embed Julia in R
https://non-contradiction.github.io/JuliaCall/index.html
Other
267 stars 36 forks source link

Automatic detection of functions from a Julia module to wrap #134

Open ChrisRackauckas opened 4 years ago

ChrisRackauckas commented 4 years ago

Basically like https://github.com/Non-Contradiction/JuliaCall/pull/118 but automatically finding all of the functions in the module and doing the wrapping process.

ChrisRackauckas commented 4 years ago

@tkf do you have ideas on how to do this?

tkf commented 4 years ago

I guess it depends on metaprogramming in R. I don't know anything about it.

ChrisRackauckas commented 4 years ago

I found I could just use a Julia eval:

functions <- JuliaCall::julia_eval("filter(isascii, replace.(string.(propertynames(DifferentialEquations)),\"!\"=>\"_bang\"))")