Hi Charles

I encountered the same error, and just commented out the following line in the 
multidivtime function:


#write(paste("       kappa = ", kappa, "    * initial or fixed kappa",sep = 
""), filename, append = TRUE)


That seemed to allow the function to proceed, but then I ran into further 
issues and eventually gave up and used PAML itself, which has more flexibility 
in setting model parameters anyway.


cheers

Marcel


www.macroevoeco.com
www.biology.anu.edu.au/Marcel_Cardillo



________________________________
From: R-sig-phylo <r-sig-phylo-boun...@r-project.org> on behalf of Charles 
Pouchon <c.pouc...@gmail.com>
Sent: Thursday, 14 January 2016 11:13 PM
To: r-sig-phylo@r-project.org
Subject: [R-sig-phylo] Problem on LAGOPUS package

Hi,
I'm sending this email because I want to use PAML/multidivtime approach 
implemented in the R package Lagopus. I followed instructions from the manual 
but I have a problem with the multidivtime() function. When I execute:

multidivtime(x,file=NULL,start=''baseml'', part=1, runs = 4, path = path, 
transfer.files = T, LogLCheck = 100, plot=T)

I get the following error message:

Error in paste(«     kappa = « , kappa, «     * initial or fixed kappa »,  :
cannot coerce type 'closure' to vector of type 'character'

so I tried to resolve it by doing:

multidivtime(as.character(x),file=NULL,start=''baseml'', part=1, runs = 4, path 
= path, transfer.files = T, LogLCheck = 100, plot=T)

And now I have this following message:

Error in attach(x,warn.conflicts=FALSE)
attach works only for list, dataframe or environments

Do you know what's the problem?



PS: i have downloaded the last version (1.4-7).

Thank you,



`````````````````````````````````````````````````````````
Charles Pouchon

Doctorant
Laboratoire d'Écologie Alpine (LECA)
UMR 5553 CNRS-UJF-UdS
2233 rue de la piscine - Bat D Biologie
38400 Saint Martin D-Hères
Bureau 313
c.pouc...@gmail.com<mailto:c.pouc...@gmail.com>


[cid:ED075724-E773-4DE3-9C92-9DD7EBF46EEA@grenet.fr]


`````````````````````````````````````````````````````````

_______________________________________________
R-sig-phylo mailing list - R-sig-phylo@r-project.org
https://stat.ethz.ch/mailman/listinfo/r-sig-phylo
Searchable archive at http://www.mail-archive.com/r-sig-phylo@r-project.org/

Reply via email to