Error: Long vectors not supported yet

rstudio

#1

Hello all,
I use the package phytools to simulate a stochastic character maps on my phylogenetic tree (which have 537 species). But, when I try to run the function make.simmap, this error appears :

Error in nlminb(q.init, function(p) lik(p, pi = pi), lower = rep(0, k),  : 
  long vectors not supported yet: ../../../../R-3.4.4/src/main/memory.c:3451

I don't know if it's due to R or due to the package... For information, I have R version 3.3.1.

This is my entire script:

tree <- read.tree("MURID_MCC_BU.tre") #Read my tree with 537 species
sta_1<-data.frame(trait_is,HB) #Data frame with 537 rows and 2 columns
sta_1_SIMMAP<-as.character(sta_1[,2]) #I take the discrete values
names(sta_1_SIMMAP)<-tree$tip.label
tree_scenar1 <- make.simmap(tree,sta_1_SIMMAP, model="ARD", nsim=10)

Error in nlminb(q.init, function(p) lik(p, pi = pi), lower = rep(0, k),  : 
  long vectors not supported yet: ../../../../R-3.4.4/src/main/memory.c:3451

Could you help me please ?


#2

Please provide a minimal reproducible example (reprex). Currently, we do not have access to your data so can not provide much help.

You can learn more about creating a reprex here: