edwindj / ffbase

Basic (statistical) functionality for R package ff
github.com/edwindj/ffbase/wiki
35 stars 15 forks source link

Unclear error when calling load.ffdf() on non-existent directory #16

Closed nalimilan closed 10 years ago

nalimilan commented 10 years ago
load.ffdf("nonexistent")
Error in setwd(dir): cannot change working directory

I think the error message should be made clearer, especially because users do not expect that loading a ffdf would require changing working directory. This increases the entry cost to use ffbase.

Of course setwd() could be more explicit, but since it isn't and R-core is usually conservative about that, it would be good to check that the directory exists before calling it.