[R] .Call works in R 2 not in R 3
ligges at statistik.tu-dortmund.de
Tue Mar 8 14:59:31 CET 2016
On 08.03.2016 14:55, Sebastien Moretti wrote:
>>> 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")
>>> "R_cutree" not available for .Call() for package "stats"
>> Why do you .Call() into another package? Rather use the API.
> Let's say that I am far from a R master.
> I never use .Call() myself.
> I want the code works again in R >= 3 because R support for R 2 will
> soon be stopped in my institute.
> When the code will work again, I could change internals by comparing
> results with R 2 and R 3.
Well, the error message above suggets you have R code that uses .Call()
not compatible with the R version you are using. I do not know where the
.Call() comes from, ehnce your turn to find it out. You havenÄt given
any other information, not even a traceback().
>> Uwe Ligges
>>> Thanks for your help
> Sébastien Moretti
More information about the R-help