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

mark.bravington at csiro.au mark.bravington at csiro.au
Fri Feb 11 08:35:57 CET 2005

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

'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))) {


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


More information about the R-devel mailing list