[Rd] Re: [R] Changing graphics defaults [was: changing (core) function argument defaults?]

From: Spencer Graves <spencer.graves_at_pdf.com>
Date: Thu 18 Nov 2004 - 11:47:13 EST

      Under the S3 standard, you could make a local copy of any function and change the defaults in that local copy. That may not always work under the S4 standard methods dispatch going to code hidden in namespaces. In any event, it should be easy (and safer) to write a function with a slightly different name, e.g., adding a dot "." to the end of the name, that would have different defaults and would do nothing but call the function of interest. This might be safer

      I don't have any suggestions about changing graphics defaults other than to ask for that specifically -- e.g., by changing the subject line to this email.

      hope this helps. spencer graves

RenE J.V. Bertin wrote:

> &gt;From: Patrick Connolly &lt;p.connolly@hortresearch.co.nz&gt;
> &gt;To: &quot;RenE J.V. Bertin&quot; &lt;rjvbertin@hotmail.com&gt;
> &gt;Subject: Re: [R] changing (core) function argument defaults?
> &gt;Date: Thu, 18 Nov 2004 11:43:10 +1300
>
> &gt;
> &gt;On Wed, 20-Oct-2004 at 07:48PM +0200, RenE J.V. Bertin wrote:
> &gt;
> &gt;|&gt; Hello,
> &gt;|&gt;
> &gt;
> &gt;|&gt; Is it possible to change the defaults for the arguments to a
> &gt;|&gt; function, without changing the function code itself? I'm
> asking
> &gt;|&gt; because I'd like to override the default dimensions and font
> family
> &gt;|&gt; for a graphics device. Before 2.0.0, I'd just do that with a
> small
> &gt;|&gt; edit in the appropriate .R file containing the device function
> &gt;|&gt; definition. I appears to be possible no longer. So rather than
> &gt;|&gt; copying the definition into my own .Rprofile, it would be
> nice if
> &gt;|&gt; just the defaults could be modified...
> &gt;
> &gt;I didn't notice a response to this question. I'd like to do
> something
> &gt;similar and haven't been able to work out how to do it.
> &gt;
> &gt;
> &gt;best
> &gt;
> &gt;--
> &gt;Patrick Connolly
> &gt;HortResearch
> &gt;Mt Albert
> &gt;Auckland
> &gt;New Zealand
> &gt;Ph: +64-9 815 4200 x 7188
>
> No, I haven't noticed a reply to this question neither.
>
> Best,
> René Bertin
>
> ______________________________________________
> R-help@stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide!
> http://www.R-project.org/posting-guide.html

-- 
Spencer Graves, PhD, Senior Development Engineer
O:  (408)938-4420;  mobile:  (408)655-4567

______________________________________________
R-devel@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
Received on Thu Nov 18 11:54:03 2004

This archive was generated by hypermail 2.1.8 : Thu 18 Nov 2004 - 13:10:31 EST