Hide R namespaces for testing purposes -
i'm developing r package can optionally use third-party packages, specified in "suggests" field of description file. functions may optionally use suggested third-party packages check availability via requirenamespace
function. these functions behave differently depending on presence or not of suggested packages.
while implementing tests theses functions, test case optional packages not present. question is: possible temporarily hide namespace testing purposes, such requirenamespace
function returns false
when searching it?
Comments
Post a Comment