使用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/更多推荐
发布评论