Message-ID: <f8e6ff050702260829y5b120e41o9a271f26db255c6a@mail.gmail.com>
Date: 2007-02-26T16:29:51Z
From: Hadley Wickham
Subject: Depending on many packages: another best practice question
In-Reply-To: <971536df0702250738o168336e5q67fd997eb86958ae@mail.gmail.com>
> You can use
>
> if(require(myPackage)) { ... }
Yes, but the problem with this is that I now have the fact that this
function requires that package stated in two places - in the body of
the function, and in the examples - adding redundancy which makes
maintenance harder.
I guess what I really want, is some way to throw an error that R CMD
check won't complain about - ie. a special dependency not met error.
Hadley