From hb at stat.berkeley.edu  Tue Jul  3 00:02:05 2007
From: hb at stat.berkeley.edu (Henrik Bengtsson)
Date: Mon, 2 Jul 2007 15:02:05 -0700
Subject: [Rd] File lock mechanisms in R
Message-ID: <59d7961d0707021502i6d3d6216o791ea4467e013cfd@mail.gmail.com>

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



[Rd] File lock mechanisms in R
Henrik Bengtsson