Hi For various reasons too dull to go into I have been trying to write csv files from R with very long filenames. However R doesn't seem to like my doing this, but it is not clear to me what the maximum filename size is, and I can't find the info on the net. I believe that the maximum pathname is 255 characters but is that the same thing? Thanks if anyone can enlighten me Nick Wray [[alternative HTML version deleted]]
This is operating-system-dependent. Check the documentation for your operating system (or the file subsystem you are using, since some OSes support multiple filesystems). Knowing this fact can make Googling more effective as well. On June 27, 2018 3:33:39 PM PDT, Nick Wray via R-help <r-help at r-project.org> wrote:>Hi For various reasons too dull to go into I have been trying to write >csv files from R with very long filenames. However R doesn't seem to >like my doing this, but it is not clear to me what the maximum filename >size is, and I can't find the info on the net. I believe that the >maximum pathname is 255 characters but is that the same thing? > >Thanks if anyone can enlighten me > >Nick Wray > [[alternative HTML version deleted]] > >______________________________________________ >R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see >https://stat.ethz.ch/mailman/listinfo/r-help >PLEASE do read the posting guide >http://www.R-project.org/posting-guide.html >and provide commented, minimal, self-contained, reproducible code.-- Sent from my phone. Please excuse my brevity.
Hi Nick, You are probably using Windows, for which the maximum path length is claimed to be 260 characters. The most common alternative, Linux, has a maximum filename length of 255 and a maximum path length of 4096. If you are simply writing a file to the current path, it won't make much difference. Jim On Thu, Jun 28, 2018 at 8:33 AM, Nick Wray via R-help <r-help at r-project.org> wrote:> Hi For various reasons too dull to go into I have been trying to write csv files from R with very long filenames. However R doesn't seem to like my doing this, but it is not clear to me what the maximum filename size is, and I can't find the info on the net. I believe that the maximum pathname is 255 characters but is that the same thing? > > Thanks if anyone can enlighten me > > Nick Wray > [[alternative HTML version deleted]] > > ______________________________________________ > R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code.
Thanks Jim> On 27 June 2018 at 23:48 Jim Lemon <drjimlemon at gmail.com> wrote: > > > Hi Nick, > You are probably using Windows, for which the maximum path length is > claimed to be 260 characters. The most common alternative, Linux, has > a maximum filename length of 255 and a maximum path length of 4096. If > you are simply writing a file to the current path, it won't make much > difference. > > Jim > > On Thu, Jun 28, 2018 at 8:33 AM, Nick Wray via R-help > <r-help at r-project.org> wrote: > > Hi For various reasons too dull to go into I have been trying to write csv files from R with very long filenames. However R doesn't seem to like my doing this, but it is not clear to me what the maximum filename size is, and I can't find the info on the net. I believe that the maximum pathname is 255 characters but is that the same thing? > > > > Thanks if anyone can enlighten me > > > > Nick Wray > > [[alternative HTML version deleted]] > > > > ______________________________________________ > > R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see > > https://stat.ethz.ch/mailman/listinfo/r-help > > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > > and provide commented, minimal, self-contained, reproducible code.[[alternative HTML version deleted]]