使用 r 的异步网络 IO:任何现有包 [英] Asynchronous network IO using r: Any existing packages
本文介绍了使用 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.
查看以下内容:
- State of the Art in Parallel Computing with R"一文描述了 R 中的大多数并行计算方法(http://www.jstatsoft.org/v31/i01/paper).HighPerformanceComputing 视图中有许多有用的包:http://cran.r-project.org/web/views/HighPerformanceComputing.html.
- 查看 svSocket:http://cran.r-project.org/web/packages/svSocket/
- 您可以尝试将 NetWorkSpaces 与 R 一起使用:http://cran.r-project.org/web/packages/nws/.
- 有几个 R 服务器示例.RServe:http://www.rforge.net/Rserve/
- iBrokers 包是我所知道的唯一使用异步请求的包之一.查看该包的源代码(您可以从 R-Forge 下载它)和相关的小插图:http://cran.r-project.org/web/packages/IBrokers/vignettes/RealTime.pdf
- biocep 项目还包括许多相关功能:http://biocep-distrib.r-forge.r-project.org/
- 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屋!
查看全文