Re: [Rd] [R] Open a file which name contains a tilde

2019-06-11 Thread Duncan Murdoch
On 11/06/2019 4:34 p.m., William Dunlap via R-devel wrote: Note that R treats tildes in file names differently on Windows and Linux. On Windows, it is only replaced if it it at the beginning of the line and is followed by a forward or backward slash or end-of-line. On Linux it is replaced no mat

Re: [Rd] [R] Open a file which name contains a tilde

2019-06-11 Thread William Dunlap via R-devel
Note that R treats tildes in file names differently on Windows and Linux. On Windows, it is only replaced if it it at the beginning of the line and is followed by a forward or backward slash or end-of-line. On Linux it is replaced no matter where it is in the text and ~someUser will be replaced by

Re: [Rd] [R] Open a file which name contains a tilde

2019-06-11 Thread Frank Schwidom
Hi Gabriel, I actually want to make renames over thousands of files. But if I am not able to express the source filename of the rename operation I will not be able to get the work done. Besides the fact that there are issues I think that R is qualified for solving my problem by the method how i

Re: [Rd] [R] Open a file which name contains a tilde

2019-06-11 Thread Travers Ching
Hi Gabriel, It may be bad practice, but you don't always have control over the file name. E.g. if someone shares a file with a tilde in it -- yes it is simple to rename but it is extra time, and you might not bother to rename a file without foreknowledge of this bug in the first place. Even wors

Re: [Rd] [R] Open a file which name contains a tilde

2019-06-11 Thread Gabriel Becker
Hi Frank, I'm hesitant to be "that guy", but in case no one else has brought this up to you, having files with a tilde in their names (generally but especially on a linux system, where ~ in file names has a very important special meaning in some cases, as we know) strikes me as an exceptionally ba

Re: [Rd] [R] Open a file which name contains a tilde

2019-06-11 Thread Frank Schwidom
Hi, yes, I have seen this package and it has the same tilde expanding problem. Please excuse me I will cc this answer to r-help and r-devel to keep the discussion running. Kind regards, Frank Schwidom On 2019-06-11 09:12:36, Gábor Csárdi wrote: > Just in case, have you seen the fs package? > h