Skip to content
Prev 205889 / 398506 Next

how to organize a lot of R source files

Hi Henrik,

Thanks for your suggestion. I created a directory with 10 R files and
tried the following and measured its time

system.time(sourceDirectory("~/fun", modifiedOnly = F))
system.time(sourceDirectory("~/fun", modifiedOnly = T))

But the second line seems to spend as much time as the first line, I
thought   the second line would be faster since no modification is made.

Also the first line reports a warning as follows
In readLines(con = fh) :
  incomplete final line found on "~/fun/util1.R"
I don't see such a warning when I use source.

Maybe the two issues are related. Please advise.

thanks

Jeff
On Fri, January 8, 2010 7:56 pm, Henrik Bengtsson wrote: