[Rd] getAnywhere and functions starting with "." (PR#7684)

From: <mark.bravington_at_csiro.au>
Date: Fri 11 Feb 2005 - 18:35:57 EST


Full_Name: Mark Bravington
Version: 2.0.1
OS: Windows XP
Submission from: (NULL) (140.79.22.104)

'getAnywhere' crashes when its argument starts with a period:

> getAnywhere( '.onLoad')

Error in exists(x, envir, mode, inherits) :

        invalid first argument

One fix might be to replace the line

if ( !is.null(f <- getS3method(gen, cl, TRUE))) {

with

if ( nchar( gen) && !is.null(f <- getS3method(gen, cl, TRUE))) {

Mark



R-devel@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel Received on Fri Feb 11 17:55:55 2005

This archive was generated by hypermail 2.1.8 : Fri 18 Mar 2005 - 09:02:50 EST