2008/11/6 Paul Hiemstra <[EMAIL PROTECTED]>: >> How can execute a bash command inside the script, like the command for >> change the directory (cd)?
> ?system The system function won't work for changing the working directory of R though: > getwd() [1] "/home/rowlings" > system("cd /") > getwd() [1] "/home/rowlings" For that you need R the function setwd(newWorkingDirectory). Barry ______________________________________________ R-help@r-project.org mailing list 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.