search for: mychoose

Displaying 1 result from an estimated 1 matches for "mychoose".

Did you mean: choose
2008 Jun 03
1
R-2.7.0 make check failure
...ving directory `/home/gruchti/Programs/R-2.7.0/tests' make: *** [check] Error 2 I took a look at the 'base-Ex.Rout.fail' file to see where the problem occured and get the following at the end of the file: > ## R code version of choose() [simplistic; warning for k < 0]: > mychoose <- function(r,k) + ifelse(k <= 0, (k==0), + sapply(k, function(k) prod(r:(r-k+1))) / factorial(k)) > k <- -1:6 > cbind(k=k, choose(1/2, k), mychoose(1/2, k)) *** caught segfault *** address 0x200, cause 'memory not mapped' Traceback: 1: doWithOneRestart...