From ligges at statistik.uni-dortmund.de  Fri Feb 11 09:01:58 2005
From: ligges at statistik.uni-dortmund.de (ligges@statistik.uni-dortmund.de)
Date: Fri Feb 11 09:02:05 2005
Subject: [Rd] getAnywhere and functions starting with "." (PR#7684)
Message-ID: <20050211080158.8855EDEF1@slim.kubism.ku.dk>

mark.bravington@csiro.au wrote:

> 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


Has already been fixed, as you can easily see, e.g., from R-devels NEWS 
file, section BUG FIXES:

  o getAnywhere() was confused by names with leading or trailing dots
    (spotted by Robert McGehee)

Uwe Ligges


[Rd] getAnywhere and functions starting with "." (PR#7684)
ligges@statistik.uni-dortmund.de