Skip to content
Prev 7701 / 12125 Next

[R-pkg-devel] DBI namespace not found on check

On 01/02/2022 12:29 p.m., Dayne Filer wrote:
That should be sufficient, but I think in the previous case it may have 
triggered a different message.

The theory is that your package should gracefully handle situations 
where suggested packages aren't present, by testing for them and falling 
back to some message to the user if they are not present.  The only way 
I know to do that for objects in the data directory is with a script to 
load them, as described in the previous thread.  Your script should work 
whether or not DBI can be loaded. If it can't be, it's fine to give a 
message (not an error) that you loaded a stub instead of the requested 
dataset (or maybe not to load anything at all, I'm not sure).

Duncan Murdoch