Message-ID: <23181.38804.322127.321109@rob.eddelbuettel.com>
Date: 2018-02-21T16:00:20Z
From: Dirk Eddelbuettel
Subject: [R-pkg-devel] header file for "flockfile" function under windows
In-Reply-To: <0d3aa8f8-d670-68b6-6ed0-8f397ad16eb7@ifom.eu>
On 20 February 2018 at 20:56, Carmen M. Livi wrote:
| I am using file-locking functions in C that can be found in the
| <stdio.h> in Unix
|
| extern void flockfile (FILE *__stream) __THROW;
| extern int ftrylockfile (FILE *__stream) __THROW __wur;
| extern void funlockfile (FILE *__stream) __THROW;
|
| When submitting to CRAN I have troubles with the win-builder.
lockfile operations are rather OS-dependent. You can't just assume they exist
under Windows. There are reasons many of us hate the non-POSIX compliance of
Windows with a reason---this is one of them.
But you may be in luck as Gabor recently released a package with a _portable_
lockfile implementation, maybe give it a try:
https://cran.r-project.org/package=filelock
Dirk
--
http://dirk.eddelbuettel.com | @eddelbuettel | edd at debian.org