简体   繁体   中英

Invoke R on a server to extract data, from within R session on host?

Background

I have an R script that runs on a host, and starts jobs on a server. The jobs output large hdf5 files.

The rest of my work is done on the host. However, the R hdf5 libraries only work on the server and not the host (because of a known bug ).

From R on the host, can I connect to an R session on the server, load the R hdf5 libraries, extract data from an hdf5 file, and then pass this object to the host?

Current approach

My current kludge is to call a bash script from within R that invokes an R script on the server and does the extraction to Rdata files, and then use rsync to bring it back to the host (all within system() )

Question

Is there a better way to extract data from these hdf5 files on the server?

I am thinking of something like entering a server R session in the same way that I can enter the browser session when debugging.

Rserve怎么 ,或者在data.table主页上有一个使用svSocket在客户端和服务器之间传递数据的视频。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM