madeleineudell / LowRankModels.jl

LowRankModels.jl is a julia package for modeling and fitting generalized low rank models.
Other
190 stars 65 forks source link

call julia from R #77

Open memoiry opened 7 years ago

memoiry commented 7 years ago

Hi

I have found that there is an intent to call julia from r in todo.md.

There is a r package https://github.com/armgong/rjulia enabling us to call julia from r。 Is that a feasible choise for this project? I would like to assist if the problem is still existing.

madeleineudell commented 7 years ago

Hello! Yes, this is still something we'd love to be able to do. Ideally, we'd make it easy for R users to call all the documented functions from LowRankModels, using an API that's natural in R; and there'd be documentation on how to use the package from R.

It looks like you could use rjulia to do the job; but you'd want to write wrappers in R to make the calls seem more natural to R users, and you'd want to write documentation to go along with it.

Also, I'd caution you that the rjulia interface claims that it may break upon julia version upgrades - so it's possible it would be a good idea to wait until Julia 1.0 comes out this summer before beginning the project. Or, you could contact the rjulia developed to ask about the stability of that project these days, since julia is much more stable now than it was even a year ago.

Non-Contradiction commented 6 years ago

There are also some other R packages to call Julia from R XRJulia, which is created by the creator of the S programming language. and JuliaCall, which is created by myself.

They are both on CRAN, so these two packages are accessible to most R users.

I have created an R package called convexjlr, which is a wrapper package for Convex.jl. It could use either XRJulia or JuliaCall.

Maybe a similar approach could be taken to write an R wrapper for LowRankModels.jl?