使用 r 的异步网络 IO:任何现有包 [英] Asynchronous network IO using r: Any existing packages

查看:13
本文介绍了使用 r 的异步网络 IO:任何现有包的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有任何促进异步网络 IO 的 R 项目包?我认为这里是 Ruby 的 Eventmachine 或 Python 的 Twisted.如果有几个这样的包/库在以下方面是最好的:- 表现- 功能

Are there any R-project packages that facilitate asynchronous network IO? I'm think here along the lines of Ruby's Eventmachine or Python's Twisted. If there are several such packages/libraries which is the best in terms of: - performance - features

推荐答案

首先,R 是单线程的,所以通常人们会尝试使用并行计算方法(例如,参见 snow 包).我不认为有任何东西像 Eventmachine 或 Twisted.

First of all, R is single-threaded, so typically people try to use parallel computing approaches (see, for instance, the snow package). I don't think there's anything quite like Eventmachine or Twisted.

查看以下内容:

  • The "State of the Art in Parallel Computing with R" paper describes most of the approaches to parallel computing in R (http://www.jstatsoft.org/v31/i01/paper). There are many useful packages in the HighPerformanceComputing view: http://cran.r-project.org/web/views/HighPerformanceComputing.html.
  • Check out svSocket: http://cran.r-project.org/web/packages/svSocket/
  • You can try using NetWorkSpaces with R: http://cran.r-project.org/web/packages/nws/.
  • There are several examples of R servers. RServe: http://www.rforge.net/Rserve/
  • The iBrokers packages is one of the only ones that I know which uses asynchonous requests. Have a look at the source code for that package (you can download it off R-Forge) and the related vignette: http://cran.r-project.org/web/packages/IBrokers/vignettes/RealTime.pdf
  • The biocep project also includes many relevant features: http://biocep-distrib.r-forge.r-project.org/

这篇关于使用 r 的异步网络 IO:任何现有包的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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