Re: [R] .Call works in R 2 not in R 3

2016-03-10 Thread Sebastien Moretti
Hi Using cutree(tree$merge, k) fixed the problem. In fact had to use cutree(tree["merge"], k) Will compare results in R 2 and R 3 now. Thanks for your help. Sébastien cutree is a function available in stats. So it might be worth a try to just replace .Call("R_cutree", tree$merge, k,

Re: [R] .Call works in R 2 not in R 3

2016-03-08 Thread Erich Neuwirth
cutree is a function available in stats. So it might be worth a try to just replace .Call("R_cutree", tree$merge, k, PACKAGE = "stats”) by cutree(tree$merge,k) and see what happens. checking the source of cutree shows the following call ans <- .Call(C_cutree, tree$merge, k) so replacing

Re: [R] .Call works in R 2 not in R 3

2016-03-08 Thread Uwe Ligges
On 08.03.2016 14:55, Sebastien Moretti wrote: Hi I inherited a R package done in 2004 that works perfectly in R 2.15.1 and before, but not in R 3.2.2 ( >= 3). I have already fixed issues with namespace for functions in R 3 but maybe not all of them. Here is the error message: Error in

Re: [R] .Call works in R 2 not in R 3

2016-03-08 Thread Sebastien Moretti
Hi I inherited a R package done in 2004 that works perfectly in R 2.15.1 and before, but not in R 3.2.2 ( >= 3). I have already fixed issues with namespace for functions in R 3 but maybe not all of them. Here is the error message: Error in .Call("R_cutree", tree$merge, k, PACKAGE = "stats")

Re: [R] .Call works in R 2 not in R 3

2016-03-08 Thread Uwe Ligges
On 08.03.2016 12:01, Sebastien Moretti wrote: Hi I inherited a R package done in 2004 that works perfectly in R 2.15.1 and before, but not in R 3.2.2 ( >= 3). I have already fixed issues with namespace for functions in R 3 but maybe not all of them. Here is the error message: Error in

[R] .Call works in R 2 not in R 3

2016-03-08 Thread Sebastien Moretti
Hi I inherited a R package done in 2004 that works perfectly in R 2.15.1 and before, but not in R 3.2.2 ( >= 3). I have already fixed issues with namespace for functions in R 3 but maybe not all of them. Here is the error message: Error in .Call("R_cutree", tree$merge, k, PACKAGE =