Re: [Rd] Unix-like touch to update modification timestamp of file?

2008-02-28 Thread Nicholas Lewin-Koh
Wow, this has to win the prize for some of the most obscure documentation ever. Kudos on your M$-archaeology. Nicholas Message: 9 Date: Wed, 27 Feb 2008 15:23:51 -0500 From: Gabor Grothendieck [EMAIL PROTECTED] Subject: Re: [Rd] Unix-like touch to update modification timestamp of file

Re: [Rd] Unix-like touch to update modification timestamp of file?

2008-02-27 Thread Earl F. Glynn
Henrik Bengtsson [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED]... is it possible to update the modification time stamp of a file using R (on file systems supporting it)? For a Windows PC, if you have RTools in your path (from

Re: [Rd] Unix-like touch to update modification timestamp of file?

2008-02-27 Thread Gabor Grothendieck
If you only need Windows then this will do it even without RTools: shell(copy /b /v myfile +,,nul) On Wed, Feb 27, 2008 at 11:12 AM, Earl F. Glynn [EMAIL PROTECTED] wrote: Henrik Bengtsson [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED]... is it possible to update the

Re: [Rd] Unix-like touch to update modification timestamp of file?

2008-02-27 Thread Henrik Bengtsson
On Wed, Feb 27, 2008 at 8:24 AM, Gabor Grothendieck [EMAIL PROTECTED] wrote: If you only need Windows then this will do it even without RTools: shell(copy /b /v myfile +,,nul) Interesting. Show I figured out that '+' is for append, but how to interpret the two commas? Thanks to both you.

[Rd] Unix-like touch to update modification timestamp of file?

2008-02-26 Thread Henrik Bengtsson
Hi, is it possible to update the modification time stamp of a file using R (on file systems supporting it)? It is sufficient to update the modification time to the current time. The best I can do for now is: touchFile - function(pathname, ...) { if (!file.exists(pathname)) stop(No such