0
我正在使用mclapply
並行運行我的代碼。以下是我的代碼片段。當我設置mc.preschedule = FALSE
時,它將存儲錯誤並轉到列表中的下一個項目。我想查看列表中的所有元素都有關聯的錯誤消息。列出嵌套列表中包含錯誤消息的所有索引R
OutputList = mclapply(Users.list,TestFunction,mc.cores = 25,mc.preschedule = FALSE)
下面是一個列表中的項目的錯誤消息。
`Jack`
[1] "Error in TestFunction(DF, x) : \n Nodes in query cannot be found in the input graph.\n\n"
attr(,"class")
[1] "try-error"
attr(,"condition")
<simpleError in TestFunction(DF, x): Nodes in query cannot be found in the input graph.
有沒有辦法可以列出所有包含錯誤信息的索引?