[R] Change default values of a function
Jesus Frias
Jesus.Frias at dit.ie
Wed May 12 21:13:09 CEST 2004
Dear R-helpers,
I would like to change the default value of a functions that is call by a
package. The function deparse() is called by a set of functions from a
library and because I don't think is appropriate to change the library, I am
trying to change the default value in deparse().
At the moment the only solution I have come across is to place a function
in my working environment like this,
deparse <- function(expr,width.cutoff=400,backtick=mode(expr) %in%
c("call","expression","("),...) deparse(expr,width.cutoff=400,backtick,...)
I only want to change the width.cutoff of the function and I wonder of
there is any more elegant way to do it.
regards,
Jesus
--------------------------------------------------------------
Jesús María Frías Celayeta
School of Food Sci. and Env. Health.
Faculty of Tourism and Food
Dublin Institute of Technology
Cathal Brugha St., Dublin 1. Ireland
t +353 1 4024459 f +353 1 4024495
w www.dit.ie/DIT/tourismfood/science/staff/frias.html
--------------------------------------------------------------
--
This message has been scanned for content and
viruses by the DIT Information Services MailScanner
Service, and is believed to be clean.
http://www.dit.ie
More information about the R-help
mailing list