I understand that in R to set my working directory I can do:
setwd("~/dir1/dir2/mydir")
If mydir is a unique directory name, is there way to specify the working directory without stating dir1/dir2 ?
Thanks
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Sys.globdoes what you want:If you don’t know how deep it’s nested, you can use
list.filesordir: