Error: file.exists(filename) is not TRUE

839 views
Skip to first unread message

Steve Cumming

unread,
Mar 24, 2016, 11:23:56 AM3/24/16
to SpaDES Users
It would be convenient if some clue were provided as to which file does not exist. This, when running simInit()

Steve

Eliot McIntire

unread,
Mar 24, 2016, 1:56:33 PM3/24/16
to spades...@googlegroups.com

Steve Cumming

unread,
Mar 24, 2016, 2:12:00 PM3/24/16
to SpaDES Users
Eliot asks that I submit a reproducible example, but

a) there are innumerable conditions that could trigger this error
b) I thought the matter was fairly straightforward

In this instance, many different kinds of booboos in filepath specifications cause simInit to fail, with the indicated error message:

Error: file.exists(filename) is not TRUE

It would help with the finding of the problem if "filename" were printed. Yes, one can eventually track it down, but especially for those of us just learning, it would make things go faster if we knew which "filename" was problematic.

Eliot McIntire

unread,
Mar 24, 2016, 3:39:52 PM3/24/16
to SpaDES Users
There is now an informative error, and it reports filename and also how that filename was generated (i.e., by concatenating modulePath with module name). It is now in the development branch: install_github("PredictiveEcology/SpaDES", ref="development")

Steve Cumming

unread,
Mar 24, 2016, 4:30:18 PM3/24/16
to SpaDES Users
Thanks very much for this, Eliot. I am sure it really will help a lot of people out, not just me.

sc
Reply all
Reply to author
Forward
0 new messages