Displaying 5 results from an estimated 5 matches for "matchedarg".
2010 Oct 04
2
Issue with match.call
Hi,
I have a function that I'm writing. The arguments in the function are as follows
RFF<-function(qtype, qOpt,...){}
i.e., I have two args that are compulsary and the rest are optional. Now when my user passes the function call, I need to see what optional args are defined and process accordingly...what I have so far is..
RFF<-function(qtype, qOpt,...){
mc <-
1998 Jan 03
1
R-beta: NextMethod(.Generic) bug
I'm a day-old R newbie (but a war-weary S veteran), with couple of
first-day questions:
In R 0.61, this code fails.
Ops.test <- function(e1,e2)
{
e1 <- NextMethod(.Generic)
e1
}
x <- 4
class(x) <- "test"
y <- x < 3
The error message is "Error in NextMethod(.Generic) : negative length vectors
are not allowed.".
I assume it is a bug.
2000 Feb 07
4
Segmentation fault, devPS.c, 0.99.0 (PR#413)
...o=0x409442fc) at objects.c:68
68 ans = applyClosure(call, op, args, rho, newrho);
(gdb) up
#14 0x8095e48 in Rf_usemethod (generic=0xbfffe438 "plot", obj=0x4094f5a8,
call=0x405b521c, args=0x402d8008, rho=0x40944540, ans=0xbfffe434)
at objects.c:197
197 *ans = applyMethod(t, sxp, matchedarg, rho, newrho);
(gdb) up
#15 0x8095fd3 in do_usemethod (call=0x405b521c, op=0x402e0a78,
args=0x405b5208, env=0x40944540) at objects.c:251
251 if (usemethod(buf, obj, call, CDR(args), env, &ans) == 1) {
(gdb) up
#16 0x807c6a1 in Rf_eval (e=0x405b521c, rho=0x40944540) at eval.c:172
172...
2012 Aug 09
4
debug vs regular mode
Dear all,
I had a R segmentation fault, and then invoked debug mode and ran step
by step.
When I reached "terms(Y~X1*X2*...*X16)", I would then have
"segmentation" fault. However, if I just ran this under regular "R
interactive" mode, it would be fine though taking long time.
My questions are:
1. Is there a known limit of terms for a formula?
2. Why does the
2012 Aug 09
4
debug vs regular mode
Dear all,
I had a R segmentation fault, and then invoked debug mode and ran step
by step.
When I reached "terms(Y~X1*X2*...*X16)", I would then have
"segmentation" fault. However, if I just ran this under regular "R
interactive" mode, it would be fine though taking long time.
My questions are:
1. Is there a known limit of terms for a formula?
2. Why does the