你如何设置最大递归深度? [英] How do you set the maximum recursion depth in?
本文介绍了你如何设置最大递归深度?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在运行一些递归深度为 5000 的 R 代码,但出现以下错误:
I am running some R code that has a recursion depth of 5000 and I get the following error:
错误:评估嵌套太深:无限递归/选项(表达式=)?
结束时出错:评估嵌套太深:无限递归/选项(表达式 =)?
Error: evaluation nested too deeply: infinite recursion / options(expressions=)?
Error during wrapup: evaluation nested too deeply: infinite recursion / options(expressions=)?
如何在 R 中设置递归深度?
How do I set the recursion depth in R?
推荐答案
啊.通过阅读错误消息找到它.这会将递归深度设置为 100000
Ah. Found it by reading the error message. This will set the recursion depth to 100000
> options(expressions= 100000)
这篇关于你如何设置最大递归深度?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文