Limit in Directory Hierarchy?

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Limit in Directory Hierarchy?

R help mailing list-2
A quick question - is there a limit to the number of levels one can go down when setting the directory in R studio?
I ask because I have been trying to set the directory to a folder 8 levels down which R studio won't allow, and when I try to set the directory through Session/Set Working Directory, it won't even show the lowest level folder:

setwd("C:/Users/supermollusc/Desktop/151017 Shellfish/Mussel Months/Mussel Mar 18/0318.data")

but it's quite happy to set the directory at 7 levels

setwd("C:/Users/supermollusc/Desktop/151017 Shellfish/Mussel Months/Mussel Mar 18")

I can't see why it won't do this if there isn't a hierarchy level limit but I can't find reference to one on the net

Thanks

Nick Wray

        [[alternative HTML version deleted]]

______________________________________________
[hidden email] 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.
Reply | Threaded
Open this post in threaded view
|

Re: Limit in Directory Hierarchy?

Jeff Newmiller
This is the wrong place to ask what RStudio can or cannot do. However, if your question is about R you should try invoking your reproducible example in RGui or the command line R.exe before posting here.

R has no directory depth limit. There is an operating system limit on returning paths more than 260 characters long, and this seems to create problems sometimes (Google it). You might also look at operating system permissions for the "0318.data" directory.

--
Sent from my phone. Please excuse my brevity.

On March 25, 2018 12:55:33 PM PDT, WRAY NICHOLAS via R-help <[hidden email]> wrote:

>A quick question - is there a limit to the number of levels one can go
>down when setting the directory in R studio?
>I ask because I have been trying to set the directory to a folder 8
>levels down which R studio won't allow, and when I try to set the
>directory through Session/Set Working Directory, it won't even show the
>lowest level folder:
>
>setwd("C:/Users/supermollusc/Desktop/151017 Shellfish/Mussel
>Months/Mussel Mar 18/0318.data")
>
>but it's quite happy to set the directory at 7 levels
>
>setwd("C:/Users/supermollusc/Desktop/151017 Shellfish/Mussel
>Months/Mussel Mar 18")
>
>I can't see why it won't do this if there isn't a hierarchy level limit
>but I can't find reference to one on the net
>
>Thanks
>
>Nick Wray
>
> [[alternative HTML version deleted]]
>
>______________________________________________
>[hidden email] 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.

______________________________________________
[hidden email] 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.