Hi all,
I am running into C stack usage problems when using the R package Runuran in RStudio. The following MWE is taken from ?pinv.new:
require(Runuran)
## Create a sample of size 100 for N(0,1)
pdf <- function (x) { exp(-0.5*x^2) }
gen <- pinv.new(pdf = pdf, lb = -Inf, ub = Inf)
Error: C stack usage 7969212 is too close to the limit
The C Stack information is
> Cstack_info()
size current direction eval_depth
7969177 12880 1 2
The interesting thing is: The same code works perfectly fine in R via terminal or via the R GUI, just not in RStudio.
I have uninstalled and re-installed both R and RStudio, the problem continued to exist. My current specifics: R version 4.0.2 (2020-06-22), RStudio version 1.3.1093, macOS Catalina (10.15.6).
I appreciate any advice!
ADDED: When I am using RMarkdown in RStudio with the exact same code, the error does not occur! Now I am completely clueless.