[Rd] vignette("introduction") causes "Error in sprintf(" (PR#9069)
Friedrich Leisch
Friedrich.Leisch at stat.uni-muenchen.de
Mon Jul 10 12:28:35 CEST 2006
>>>>> 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
More information about the R-devel
mailing list