Full_Name: Jelle Goeman Version: 2.0.0 OS: windows Submission from: (NULL) (145.88.209.33) I get a strange error:> is.vector(1:10)Error: recursive default argument reference What's recursive about is.vector? Kind regards, Jelle Goeman My R: platform i386-pc-mingw32 arch i386 os mingw32 system i386, mingw32 status major 2 minor 0.0 year 2004 month 10 day 04 language R
j.j.goeman@lumc.nl wrote:> Full_Name: Jelle Goeman > Version: 2.0.0 > OS: windows > Submission from: (NULL) (145.88.209.33) > > > I get a strange error: > > >>is.vector(1:10) > > Error: recursive default argument referenceWorks for me. Looks like your installation is broken, or do you have loaded some strange packages? Uwe Ligges> What's recursive about is.vector? > > Kind regards, > > Jelle Goeman > > My R: > > platform i386-pc-mingw32 > arch i386 > os mingw32 > system i386, mingw32 > status > major 2 > minor 0.0 > year 2004 > month 10 > day 04 > language R > > ______________________________________________ > R-devel@stat.math.ethz.ch mailing list > https://stat.ethz.ch/mailman/listinfo/r-devel
j.j.goeman@lumc.nl writes:> I get a strange error: > > > is.vector(1:10) > Error: recursive default argument referenceHmm. I can't reproduce that on Linux...> What's recursive about is.vector?Nothing. You generally get that error if two arguments refer to eachother, as in> f <- function(x=y,y=x)x+y > f(1)[1] 2> f(,1)[1] 2> f()Error in f() : recursive default argument reference but nothing of that sort is going on in is.vector. Unless it somehow got redefined --- are you sure that you got the original is.vector there?> is.vectorfunction (x, mode = "any") .Internal(is.vector(x, mode)) <environment: namespace:base> The other possibility is that you're tickling a low-level, system dependent bug in the evaluator. Can anyone reproduce this? -- O__ ---- Peter Dalgaard Blegdamsvej 3 c/ /'_ --- Dept. of Biostatistics 2200 Cph. N (*) \(*) -- University of Copenhagen Denmark Ph: (+45) 35327918 ~~~~~~~~~~ - (p.dalgaard@biostat.ku.dk) FAX: (+45) 35327907
Hi, I only loaded survival and Biobase yesterday. But I cannot reproduce the error myself today... I'll report again when I find out more. Best, Jelle http://www.math.leidenuniv.nl/~jgoeman> -----Original Message----- > From: Peter Dalgaard [mailto:p.dalgaard@biostat.ku.dk] > Sent: Thursday, 14 October, 2004 6:52 PM > To: Goeman, J.J. (MSTAT) > Cc: r-devel@stat.math.ethz.ch; R-bugs@biostat.ku.dk > Subject: Re: [Rd] is.vector() gives error (PR#7288) > > > j.j.goeman@lumc.nl writes: > > > I get a strange error: > > > > > is.vector(1:10) > > Error: recursive default argument reference > > Hmm. I can't reproduce that on Linux... > > > What's recursive about is.vector? > > Nothing. You generally get that error if two arguments refer to > eachother, as in > > > f <- function(x=y,y=x)x+y > > f(1) > [1] 2 > > f(,1) > [1] 2 > > f() > Error in f() : recursive default argument reference > > but nothing of that sort is going on in is.vector. Unless it somehow > got redefined --- are you sure that you got the original is.vector > there? > > > is.vector > function (x, mode = "any") > .Internal(is.vector(x, mode)) > <environment: namespace:base> > > The other possibility is that you're tickling a low-level, system > dependent bug in the evaluator. Can anyone reproduce this? > > -- > O__ ---- Peter Dalgaard Blegdamsvej 3 > c/ /'_ --- Dept. of Biostatistics 2200 Cph. N > (*) \(*) -- University of Copenhagen Denmark Ph: > (+45) 35327918 > ~~~~~~~~~~ - (p.dalgaard@biostat.ku.dk) FAX: > (+45) 35327907 >
Reasonably Related Threads
- avoiding a needless function evaluation in optimize() (PR#9523)
- Problem with hasArg and the ... argument (PR#7027)
- Some bugs in Rcmd check ? (PR#2608)
- Puzzling message: "no man files in this package"
- different L2 regularization behavior between lrm, glmnet, and penalized? (original question)