[R] file.info returning NA

2010-10-07 Thread Erich Neuwirth
Windows 7, R-2.11.1 and R-2.12.0beta When I do file.info(list.files(getwd())) I get what I expect, a dataframe with a lot of variables, especially isdir, which tells me if the named object is a file or a directory. In the result of file.info(list.files(paste(R.home(),library,sep=/))) all

Re: [R] file.info returning NA

2010-10-07 Thread Henrique Dallazuanna
Try with full.names = TRUE argument in list.files: file.info(list.files(paste(R.home(),library,sep=/), full.names = TRUE)) On Thu, Oct 7, 2010 at 9:37 AM, Erich Neuwirth erich.neuwi...@univie.ac.atwrote: Windows 7, R-2.11.1 and R-2.12.0beta When I do file.info(list.files(getwd())) I get

Re: [R] file.info returning NA

2010-10-07 Thread Duncan Murdoch
On 07/10/2010 8:37 AM, Erich Neuwirth wrote: Windows 7, R-2.11.1 and R-2.12.0beta When I do file.info(list.files(getwd())) I get what I expect, a dataframe with a lot of variables, especially isdir, which tells me if the named object is a file or a directory. In the result of