Skip to content
Back to formatted view

Raw Message

Message-ID: <CAAky9CK17icTdLaVPKmgEPkb_RSEU9UO1YSCW1fKbfVSqL=3eA@mail.gmail.com>
Date: 2018-09-14T09:16:43Z
From: Irene Steves
Subject: Suggestion: use mustWork = TRUE as the default for system.file

Hello all,

Currently, the default behavior for system.file() is to return "" for
faulty paths.

I've found this behavior to be difficult when debugging, since it passes
the empty path onto other functions.  I initially wrote in errors myself
(with code like `if(path == "") stop(?Path not found?)`), but I now use
mustWork=TRUE or fs::path_package(), which errors by default.

What are the general thoughts on this issue?  I would love to
see mustWork=TRUE become the default in future versions of R, but
I would be happy to hear any counterarguments (or support!) for this
suggestion.

Cheers,
Irene Steves

	[[alternative HTML version deleted]]