[R] override default arguments in nested function

From: Joshua Wiley <jwiley.psych_at_gmail.com>
Date: Wed, 20 Apr 2011 19:45:08 -0700

Hi All,

I think I already know the answer, but I am hoping I am missing something. I am using function omega from the psych_1.0-96 in R version 2.13.0. I would like to override one of the default arguments of a function that is eventually called (to fix convergence issues), the problem is there is no argument at the omega() function level that make it to the function I want to override. That is,

omega calls schmid calls oblimin calls GPFoblq

and I want to change an argument in GPFoblq. Right now I am using (the rather unsatisfactory):

trace(what = GPFoblq, tracer = expression(maxit <- 2000), at = 10, print = FALSE)

to override the maximum number of iterations, which works but is a hassle. Anyone have other ideas/techniques?



Joshua Wiley
Ph.D. Student, Health Psychology
University of California, Los Angeles

R-help_at_r-project.org mailing list
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
Received on Thu 21 Apr 2011 - 02:48:03 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Thu 21 Apr 2011 - 13:10:32 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive