RE: [R] NAMESPACE and tests for unexported functions

From: Liaw, Andy <andy_liaw_at_merck.com>
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(...).

Andy

> 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)



R-help@stat.math.ethz.ch mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html 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