[Rd] Debugging namespace problems

From: Hadley Wickham <hadley_at_rice.edu>
Date: Fri, 23 Dec 2011 13:50:00 -0600


Hi all,

I frequently find that I've failed to export something in my NAMESPACE and hence my package doesn't work when it's imported into another package. Does anyone have suggestion for debugging this type of problem? R CMD check passes without any ns related errors on both the importee and the importer.

I've attached a reproducible example - if you install the development version of ggplot2 (e.g. with devtools::install_github("ggplot2") the attached package fails R CMD check with:

> ### ** Examples
>
> plot(my_plot())

Error in structure(list(data = data, layers = list(), scales = Scales$new(), :   attempt to apply non-function
Calls: plot ... my_plot -> ggplot -> ggplot.data.frame -> structure Execution halted
Error: Command failed (1)

Hadley

-- 
Assistant Professor / Dobelman Family Junior Chair
Department of Statistics / Rice University
http://had.co.nz/

______________________________________________ R-devel_at_r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Received on Fri 23 Dec 2011 - 19:53:11 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 23 Dec 2011 - 20:00:19 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