[R] Error: promise already under evaluation

Ivan Krylov kry|ov@r00t @end|ng |rom gm@||@com
Tue Jul 18 16:38:17 CEST 2023


В Tue, 18 Jul 2023 09:28:30 -0400
Joseph Lucke <jflucke48 using gmail.com> пишет:

> Error in qnbinom(1 - tol, size = q, prob = r) :

> pRsq.Rhosq <- function(x, n, p, Rhosq,tol=tol){

It looks like you're not passing the `tol` parameter, and its default
value unfortunately refers to itself:

(function(x = x) x)()
# Error in (function(x = x) x)() :
#   promise already under evaluation: recursive default argument
#   reference or earlier problems?

-- 
Best regards,
Ivan



More information about the R-help mailing list