[Rd] File lock mechanisms in R

From: Henrik Bengtsson <hb_at_stat.berkeley.edu>
Date: Mon, 02 Jul 2007 15:02:05 -0700


Hi,

is there a (cross-platform) file-locking mechanism available in R (or via some package)?

I am looking for a way to have one R session lock a file for read/write access, while being updated/modified by another R session. This will provide me with a-poor-mans parallelization method. It is ok to have so called advisory looking (as in Unix), which are non-mandatory to follow. If not available, I'll use lock files, but there are some potential problems in creating such in an atomic way. Ideally I wish to have this working on all platforms.

Cheers

Henrik



R-devel_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel Received on Mon 02 Jul 2007 - 22:05:32 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Tue 03 Jul 2007 - 09:35:52 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-devel. Please read the posting guide before posting to the list.