tryCatch中的函数仍在停止进程

tryCatch中的函数仍在停止进程,r,try-catch,bioconductor,R,Try Catch,Bioconductor,我正在尝试一个新的图书馆,我发现了一个奇怪的行为。我有一个envRefClass类型的派生类的对象的方法,它甚至在带有错误处理程序的tryCatch函数中停止我的进程 library(STRINGdb) # Creating the object string_db <- STRINGdb$new(version = "10", species = 9606, score_threshold = 0, input_directory = ""

我正在尝试一个新的图书馆,我发现了一个奇怪的行为。我有一个envRefClass类型的派生类的对象的方法,它甚至在带有错误处理程序的tryCatch函数中停止我的进程

library(STRINGdb)
# Creating the object
string_db <- STRINGdb$new(version = "10", species = 9606,
                       score_threshold = 0, input_directory = "" )
# Converting ids 
string_id <- string_db$map(data.frame(gene = moduleGenes), "gene",
                           takeFirst = FALSE) 
# Ploting with plot_ppi
tryCatch({
  tryCatch({string_db$plot_ppi_enrichment(string_id$STRING_id,
                                          title = paste("Interaction enrichment of", moduleName))},
           error = function(e) {
             message("Couldn't map the enrichment of STRING")
             # sessionInfo()
             # message(e)
           })
}, error = function(e) {
  message("Another error")
  # message(e)
  }
)
'select()' returned 1:1 mapping between keys and columns
Warning:  we couldn't map to STRING 3% of your identifiersERROR: We do not support lists with more than 400 genes.
Please reduce the size of your input and rerun the analysis.    Error in get_png(string_ids, payload_id = payload_id, required_score = required_score) 
库(STRINGdb)
#创建对象

string_db生成错误的函数是否调用编译代码?能否指定错误发生的位置?您可以使用
options(error=recover)
在错误发生时停止,并检查相应环境中的变量。@但如果没有调用编译过的代码,至少我不记得在安装库时看到过任何编译,但它正在从互联网下载数据internet@tobiasegli_te我无法使用该选项运行它(在交互式模式下,我的计算机冻结),我只能在批处理模式下运行此代码生成错误的函数是否调用编译代码?您能否指定错误发生的位置?您可以使用
options(error=recover)
在错误发生时停止,并检查相应环境中的变量。@但如果没有调用编译过的代码,至少我不记得在安装库时看到过任何编译,但它正在从互联网下载数据internet@tobiasegli_te我无法使用该选项运行它(在交互式模式下,我的计算机冻结),我只能在批处理模式下运行此代码