Re: [Rd] vignette("introduction") causes "Error in sprintf(" (PR#9069)

From: Friedrich Leisch <>
Date: Mon 10 Jul 2006 - 10:28:35 GMT

>>>>> On Sun, 09 Jul 2006 19:21:25 +0100, >>>>> Chris Evans (CE) wrote:

  > Gabor Grothendieck sent the following  at 09/07/2006 19:02:

>> Same for me. Looking through the output of vignette
>> I noticed that both the ggplot and reshape packages have
>> a vignette called "introduction" in my case and either of
>> the following brings up the associated vignette (as opposed
>> to the error message):
>> vignette("introduction", "ggplot")
>> vignette("introduction", "reshape")

  > Aha, works for me too. Sorry, I probably should have been able to work   > that out myself.

  > So: not so much a bug, more a wish as it might be good if the vignette
  > code checked for multiple vignettes with the same name and returned a
  > choice or a message warning you that there are multiples.

A simple traceback shows that the bug was actually in code trying to do exactly what you suggest ;-)

R> vignette("introduction")
Error in sprintf(gettext(fmt, domain = domain), ...) :

        use format %s for character objects
R> traceback()
4: sprintf(gettext(fmt, domain = domain), ...) 3: gettextf("vignette '%d' found more than once,\nusing the one found in '%s'",

       topic, dirname(pdf[idx]))
2: warning(gettextf("vignette '%d' found more than once,\nusing the one found in '%s'",

       topic, dirname(pdf[idx])), call. = FALSE, domain = NA) 1: vignette("introduction")

Fixed now in both r-patched and r-devel.

Fritz mailing list Received on Mon Jul 10 21:39:55 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Mon 10 Jul 2006 - 14:27:22 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.