Hi Carlos,

I tested your script in both ways and it may work or fail depending on the tree which is generated. However, it seems that failure is more frequent with source (about 70%) than with Rscript (about 40%). One possible explanation for this may be that the random number generator (RNG) is initialized at each call of Rscript whereas it is generated only once for all calls of source; however, why this may make a difference is not clear to me.

Anyway, this error should not happen and seems to be due to the small size of the simulated tree. I continue to work on improving the underlying code so that, hopefully, this will be fixed soon.

Best,

Emmanuel

Le 02/05/2014 18:03, Carlos Anderson a écrit :
I have a very simple script using bd.time from the ape library that runs OK
within the R environment or when running the script using "Rscript," but it
fails when calling it with "source." I have posted my problem in detail on
stackoverflow.com:

http://stackoverflow.com/questions/23416763/difference-running-rscript-vs-source-with-ape-library

Thanks in advance.

Carlos Anderson
Postdoctoral Research Fellow
Department of Ecology and Evolutionary Biology
University of Michigan
carlo...@umich.edu

        [[alternative HTML version deleted]]

_______________________________________________
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/


_______________________________________________
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