Re: [Rd] problem with vignettes when S4 classes in packages overlap

From: Spencer Graves <spencer.graves_at_prodsyse.com>
Date: Tue, 18 Sep 2012 16:50:30 -0700

On 9/18/2012 4:23 PM, Duncan Murdoch wrote:
> On 12-09-18 5:40 PM, Paul Gilbert wrote:
>>
>> ( A similar problem is also reported by Sebastian P. Luque with
>> library(maptools)
>> library(trip)
>> in the vignette as below ).
>>
>> I am writing a vignette which loads RMySQL and RPostgreSQL. This
>> produces the warning:
>>
>> Loading required package: DBI
>> Warning in .simpleDuplicateClass(def, prev) :
>> A specification for class “dbObjectId” in package ‘RPostgreSQL’
>> seems
>> equivalent to one from package ‘RMySQL’ and is not turning on duplicate
>> class definitions for this class
>>
>> This can be reproduced by running
>> R CMD Sweave --pdf Atest.Stex
>>
>> where the file Atest.Stex has the lines
>>
>> \documentclass{article}
>> \usepackage{Sweave}
>> \begin{document}
>> \begin{Scode}
>> library("RMySQL")
>> library("RPostgreSQL")
>> \end{Scode}
>> \end{document}
>>
>> These warnings only happen in a vignette. They are not produced if the
>> lines are entered in an R session.
>>
>> (Using R version 2.15.1 (2012-06-22) -- "Roasted Marshmallows" on Ubunt
>
> You'll get the warning in a regular session if you set
> options(warn=1). I think Sweave is probably doing this so that
> warnings show up around the time of the chunk they correspond to. It
> does it in the command line version, but not in the Sweave() function
> (which would save them up to the end).
>
> I don't know if the warning is something you should worry about or not.

       On August 30, 2012, CRAN maintainers rejected the latest version of "fda", and I understood them to say it was rejected because the current CRAN policy did not accept packages reporting either "Notes" or "Warnings". As part of my efforts to comply with this, I started the thread on [Rd] subject: "if(--as-cran)?" I added a function "CRAN" to "fda", and I thought someone had added a more general function to the development version of R. Unfortunately, I can't find documentation of that more general function now.

       Spencer

>
> Duncan Murdoch
>
> ______________________________________________
> R-devel@r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel



R-devel_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel Received on Tue 18 Sep 2012 - 23:54:53 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 Wed 19 Sep 2012 - 08:10:43 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