连结R和Julia? [英] Linking R and Julia?

查看:78
本文介绍了连结R和Julia?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Julia看起来非常有希望进行快速且语法合理的计算(例如

Julia looks very promising for fast and syntax-sane computation (e.g. here), but I suspect it will not be anywhere near R in terms of overall statistics workflow for some time yet. So I'd like to use it where C++ is mainly used in R programs: to optimize slow portions of code. Before I invest the time in learning Julia, though, I am curious what facilities there are for embedding Julia snippets in R code.

所以:

  • 那里有什么设施可以链接R和Julia?
  • 从零到Rcpp,它们有多健壮和经过深思熟虑?

我想从R调用Julia,就像Rcpp允许现在从R内部调用C ++一样.我不想打给茱莉亚打电话. (因此RCall.jl无法正常工作)

I want to call Julia from R, just as Rcpp allows calling C++ from within R right now. I do not want to call R from Julia. (So RCall.jl would not work)

推荐答案

RJulia R包看上去相当R从现在开始运行.R CMD check运行时没有警告或错误(如果正确安装了julia).

The RJulia R package looks quite good now from R. R CMD check runs without warnings or errors (if julia is properly installed).

我认为最大的TODO是让Julia返回命名列表,这些列表构成R中真正基本的通用数据结构.

Biggest TODO in my view is to get Julia to return named lists which constitute the really basic flexible general data structure in R.

请注意,道格·贝茨(Doug Bates)提醒我有关 RCall 从茱莉亚到R的双向接口(也就是说,除了R指向Julia以外的其他方向).此外,道格还建议定位到朱莉娅 0.4.0 ,而不是当前的稳定版本的茱莉亚.

Note that Doug Bates alerted me about RCall a bi-directional interface from Julia to R (i.e., the other direction than R to Julia). Also, Doug recommended to target julia 0.4.0 rather than the current stable versions of julia.

这篇关于连结R和Julia?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆