Hey,

two questions regarding setwd and list.files:

I try to use the function list.files:

>datapath<-'/nfs/home/m/cremer/gaw/data/traws_chrs'

>fl<-list.files(datapath, pattern="\\.tped")

but I get the following error message:

Warning message:
In list.files(datapath, pattern = "\\.tped") :
  list.files: '/nfs/home/m/cremer/gaw/data/traws_chrs/' is not a readable 
directory
> fl
character(0)

The use of setwd also does not work:

> setwd(datapath)
Error in setwd(datapath) : cannot change working directory


datapath exists and it doesn't matter whether I use single quotes ' or double 
quotes "

Any help?

Lars
--

______________________________________________
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.

Reply via email to