[R-pkg-devel]  header file for "flockfile" function under windows
    Dirk Eddelbuettel 
    edd at debian.org
       
    Wed Feb 21 17:00:20 CET 2018
    
    
  
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
    
    
More information about the R-package-devel
mailing list