使用r的异步网络IO:任何现有的软件包[已关闭](Asynchronous network IO using r: Any existing packages [closed])

编程入门 行业动态 更新时间:2024-10-12 18:22:44
使用r的异步网络IO:任何现有的软件包[已关闭](Asynchronous network IO using r: Any existing packages [closed])

是否有任何R-project软件包可以促进异步网络IO? 我在这里认为是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是单线程的,因此通常人们会尝试使用并行计算方法(例如,参见雪包)。 我不认为有什么和Eventmachine或Twisted一样。

看看下面的内容:

“使用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/ 您可以尝试在R中使用NetWorkSpaces: 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/

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.

Check out the following:

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/

更多推荐

本文发布于:2023-08-07 15:43:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1464533.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:软件包   网络   IO   Asynchronous   closed

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!