[R] 5 arguments passed to .Internal(matrix) which requires 7

Uwe Ligges ligges at statistik.tu-dortmund.de
Fri Aug 12 11:33:39 CEST 2011


You obviously have a combination from R code in package base and 
compiled C code of base R that do not match.

Point is that the "matrix" R code passes 7 arguments to the underlying 
.Internal code that should also expect 7 arguments. If just 5 are passes 
the R code is from an ancient version of R.

Try to clean up completely and reinstall.

Best,
Uwe Ligges


On 01.08.2011 17:32, Robert Pfister wrote:
> Hello,
>
> I am having a problem with the function matrix. Specifically, when I pass
> three arguments (two more being instantiated in the function), I get the
> following error message:
>
> Error in matrix(0, 30, 10) :
>    5 arguments passed to .Internal(matrix) which requires 7
>
>
> I looked into it, and someone has suggested that this may be the function
> from an old version of R. I recently changed my source path from the lucid
> version to the maverick version and installed all of the R packages I need
> like so, but why would this change the matrix() function? Also, how does R
> know that I passed five arguments (only three being given) if the matrix()
> function is supposed to take seven arguments?
>
> Thank you,
>
> Robert
>
> 	[[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.



More information about the R-help mailing list