RE: [R] NAMESPACE and tests for unexported functions

From: Liaw, Andy <>
Date: Thu 08 Jul 2004 - 06:01:58 EST

Not sure if this is recommended for testing purposes, but you can try using `:::'; e.g., mypkg:::invisibleFunction(...).


> From: Paul Roebuck
> How do you get around the problem of having tests for
> functions that are not exported in NAMESPACE? It seems
> rather self-defeating to have to export everything so
> that 'R CMD CHECK pkg' won't crash when it encounters
> a test case for an internal function. I don't want
> someone using the package to call the function, but the
> package itself should be able to see its own contents.
> ----------------------------------------------------------
> SIGSIG -- signature too long (core dumped) mailing list PLEASE do read the posting guide! Received on Thu Jul 08 06:06:44 2004

This archive was generated by hypermail 2.1.8 : Wed 03 Nov 2004 - 22:54:45 EST