错误:评估嵌套太深:无限递归/选项(表达式=)? rhierbaps

问题描述 投票:0回答:1

我试图在一组729个菌株中运行R中的rhierbaps,这是我正在使用的代码(与用于该程序的示例中的代码完全相同):

#load data
fasta.rhierBAPS_Ef <- system.file("extdata", "Concatenated.fas", package = "rhierbaps")

#SNP Matrix
snp.matrix <- load_fasta(fasta.rhierBAPS_Ef)

#rhierBAPS
hb.results <- hierBAPS(snp.matrix, max.depth = 2, n.pops = 10, n.extra.rounds = Inf, 
                       quiet = TRUE)

当我这样做时得到错误:

Error: evaluation nested too deeply: infinite recursion / options(expressions=)?
Error during wrapup:

然后Rstudio阻止和中止......

你能帮帮我吗?

r
1个回答
0
投票

你错误地指定了:n.pops = 0使用正整数作为上限,它将起作用。

© www.soinside.com 2019 - 2024. All rights reserved.