[R] Troubles plotting lrm output in Design Library

Prof Brian Ripley ripley at stats.ox.ac.uk
Sat May 31 06:15:53 CEST 2008


On Fri, 30 May 2008, Frank E Harrell Jr wrote:

> Prof Brian Ripley wrote:
>> On Fri, 30 May 2008, Patrizio Frederic wrote:
>> 
>>>> Thanks for the solution.  But I wish someone would tell us why the 
>>>> solution
>>>> makes sense.  If you have changed your R environment in any way from the
>>>> defaults please let us know.
>>>> 
>>>> Frank
>>>> 
>>>> -- 
>>>> Frank E Harrell Jr   Professor and Chair           School of Medicine
>>>>                     Department of Biostatistics   Vanderbilt University
>>>> 
>>> 
>>> dear Harrell and R users,
>>> It took me several hours to figure out. I apologize it was my mistake.
>>> Few month ago a modified copy of .Options was created in Rprofile (I
>>> don't remember why). The copy masked the alias .Options created by
>>> options().
>>> Now everything is fixed. Now I know how .Options and options are
>>> related one each other. Sorry for wasting your time.
>>> Thank you for your help.
>> 
>> This is an infelicity in Design and Hmisc (and a few other packages), in 
>> that they do look at the first visible .Options.  R itself only looks at 
>> the copy in the symbol table (which also appears in the base namespace).
>> 
>
> I hadn't thought of that.  Thanks Brian.  I think of .Options$foo as being 
> faster.  Is there a preferred approach other than options('foo')?

getOption("foo").  Because .Options is a pairlist, the speed can be 
illusory.

>
> Thanks
> Frank
>
>
> -- 
> Frank E Harrell Jr   Professor and Chair           School of Medicine
>                     Department of Biostatistics   Vanderbilt University
>

-- 
Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595



More information about the R-help mailing list