Open nicolamos opened 4 years ago
Thanks for the report! I'll take a look when I'm back in the office next month.
Sorry for the delay in investigating this.
I believe that the issue lies with the high number of character states employed. Are you able to regenerate the matrix such that only the digits 0:9 are used?
When I replaced characters outwith this range with '?',
turbiniChars <- ReadCharacters('../Turbinicarpus.ss_26.nex')
turbiniChars[!turbiniChars %in% as.character(0:9)] <- '?'
just0to9 <- MatrixToPhyDat(turbiniChars)
I did not experience the crash.
Hopefully this is a viable workaround whilst I make the software fail more gracefully, or better still not at all!
Thank you for the response. Yes, that should be the problem. Another possible workaround can be
raw_data <- ReadCharacters(“../Turbinicarpus.ss_26.nex")
turbini_phydata <- phyDat(raw_data, type='USER', levels=c(0:9, ":", "<", "=", ">", "@", "A", "B", "C", "D", "E", "G", "H", "K", "-“))
Best, Nicola
Turbinicarpus ss_26 paupout.txt
I have tested the package with some data (attached). Here the code that causes the crash. This snippet is taken from vignettes/inapplicable.rmd example code, which runs flawlessly.
Thank you very much for the help.