Skip to content
Prev 14381 / 63424 Next

changing (core) function argument defaults?

Just to add to Thomas Lumley suggestion: it's generally a good idea to call 
a wrapper function it by a different name.  This way, when you forget that 
you have a wrapper function, you won't be puzzled by why the function 
doesn't behave according to the documentation, and you won't embarrass 
yourself by asking other people why there is a bug in R.  Also, if the 
function is called programmatically by other functions, those usages might 
be depending upon the standard defaults being in effect.  So, just do 
something like:

myX11<-function(display="",width=2,height=2,...){
    grDevices::X11(display=display,width=width,height=height,...)
}

-- Tony Plate