Currently in my RStudio I ran this code with this error:
> library(gtools)
> nrow(combinations(n=448,r=2,v=1:448,repeats.allowed=F))
Error: C stack usage 7971524 is too close to the limit
What I did, is I add this line
ulimit -s 16384
in my bashrc.
The R code above runs ok if I execute it with R console in my terminal.
But it still gives an error when I run it RStudio console.
How can I fix the issue?