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,                  [EMAIL PROTECTED]
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

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to