[Rd] Silently loading and Depends: versus NAMESPACE imports

From: Dirk Eddelbuettel <edd_at_debian.org>
Date: Wed, 11 Jan 2012 13:42:39 -0600

R CMD check really hates it when my .onLoad() function contains

    suppressMessages(library(foo))

However, _and for non-public packages not going to CRAN_ I prefer doing this over using explicit Depends or import statements in the NAMESPACE file as the latter do not give me an ability to make the loading less verbose. With the R universe of packages being as vast as at is, a simple (non-public) package I have loads about five or six other packages explicitly, each of which loads even more. The net result is totally intimidating _sixty lines full_ of verbose noise that is meaningful to me as an R programmer, but not for the colleagues expected to use the packages. It looks rather uninviting, frankly.

How do I use imports via NAMESPACE, and yet keep the noise level down to zero?

Dirk

-- 
"Outside of a dog, a book is a man's best friend. Inside of a dog, it is too
dark to read." -- Groucho Marx

______________________________________________
R-devel_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
Received on Wed 11 Jan 2012 - 20:43:07 GMT

This quarter's messages: by month, or sorted: [ by date ] [ by thread ] [ by subject ] [ by author ]

All messages

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Fri 13 Jan 2012 - 03:30:08 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-devel. Please read the posting guide before posting to the list.

list of date sections of archive