Skip to content
Prev 378097 / 398502 Next

Question

Er, just keep it simple, Marc... give one option:

library(lattice)

If you _ever_ use require() without acting upon the return value then you are setting yourself or someone else up for confusing missing objects errors someday for no good reason. This _isn't_ just personal preference... by choosing to use the require function you are taking responsibility for the case where that package is missing, and by ignoring the return value you are immediately abdicating that responsibility. Let the error appear where it makes sense by using the library function in the first place.
On January 8, 2019 10:56:57 AM PST, Marc Schwartz via R-help <r-help at r-project.org> wrote: