H i, I am currently facing an issue while using the modelTest function in R, and I would greatly appreciate your assistance in resolving it.
Every time I run the code modelTest(primates) in RStudio, I encounter an error message stating that the R session has aborted. The only option available to me is to start a new session. I have attempted various troubleshooting steps, including reinstalling the package, restarting my computer, and even switching to a different computer, but I consistently receive the same error message.
To investigate further, I also tested the code with previously successful data, but I still encountered the same error. The size of my data is within 200 KB and stored in a FASTA file format.

Here is the code I am using:
library(ape)
library(seqinr)
library(adegenet)
library(phangorn)
bin_name <- fasta2DNAbin(file = "./g1a.fasta")
primates <- as.phyDat(bin_name)
modelTest(primates)
The alignment of my dna data is as follows:

Information about version:
R version 4.2.1 (2022-06-23)
Platform: x86_64-apple-darwin17.0 (64-bit)
Running under: macOS Monterey 12.4
Matrix products: default
LAPACK: /Library/Frameworks/R.framework/Versions/4.2/Resources/lib/libRlapack.dylib
locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] phangorn_2.11.1 adegenet_2.1.7 ade4_1.7-19 seqinr_4.2-16 ape_5.7-1
I would be grateful if you could provide any insights or advice on how to resolve this issue. Please let me know if there is any additional information or steps I can provide to assist in troubleshooting.
Thank you very much for your time and support. I look forward to your response.
H i, I am currently facing an issue while using the modelTest function in R, and I would greatly appreciate your assistance in resolving it.

Every time I run the code modelTest(primates) in RStudio, I encounter an error message stating that the R session has aborted. The only option available to me is to start a new session. I have attempted various troubleshooting steps, including reinstalling the package, restarting my computer, and even switching to a different computer, but I consistently receive the same error message.
To investigate further, I also tested the code with previously successful data, but I still encountered the same error. The size of my data is within 200 KB and stored in a FASTA file format.
Here is the code I am using:
The alignment of my dna data is as follows:

Information about version:
I would be grateful if you could provide any insights or advice on how to resolve this issue. Please let me know if there is any additional information or steps I can provide to assist in troubleshooting.
Thank you very much for your time and support. I look forward to your response.