[R] setwd() command on windows vs. linux/unix

2015-07-27 Thread Chris via R-help
I have a script that runs correctly (no errors) on Windows, the first command is a "setwd(.windows directory)"I installed the script on a Linux machine and changed the windows directory reference to the correct directory on the linux machine.when I ran the script I got a message that "cannot

Re: [R] setwd() command on windows vs. linux/unix

2015-07-27 Thread William Dunlap
You can get a more informative error message from system("bash -c 'cd yourDirectory'"), although it will not take R to that directory if there are no problems. E.g., I did in a shell % mkdir -p dir/subdir % chmod -x dir to make an untraversable directory 'dir' and a subdirectory of it. Then

Re: [R] setwd() command on windows vs. linux/unix

2015-07-27 Thread John McKown
On Mon, Jul 27, 2015 at 2:38 PM, Chris wrote: > > I have a script that runs correctly (no errors) on Windows, the first > command is a "setwd(.windows directory)"I installed the script on a > Linux machine and changed the windows directory reference to the correct > directory on the linux mac

Re: [R] setwd() command on windows vs. linux/unix

2015-07-27 Thread jim holtman
Try 'choose.dir()' to see if you can navigate to the given directory, or take baby steps by doing one directory at a time. Jim Holtman Data Munger Guru What is the problem that you are trying to solve? Tell me what you want to do, not how you want to do it. On Mon, Jul 27, 2015 at 3:38 PM, Chri

[R] setwd() command on windows vs. linux/unix

2015-07-27 Thread Chris
I have a script that runs correctly (no errors) on Windows, the first command is a "setwd(.windows directory)"I installed the script on a Linux machine and changed the windows directory reference to the correct directory on the linux machine.when I ran the script I got a message that "canno