How to make sure RStudio to incorporate ulimit change made in .bashrc

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?

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.