I use the latest version of R (4.2.2 Patched)
I was downloading a set of packages for my work when one failed (bayou). I tried to fix the problem via increasing the memory usage of R in the terminal (I use Ubuntu), as I got this error when trying to install the package:
Error: C stack usage 7976516 is too close to the limit
To try and deal with this issue, I uninstalled and reinstalled R and RStudio, and restarted my PC.
However, now when I open R, I get this:
R version 4.2.2 Patched (2022-11-10 r83330) -- "Innocent and Trusting"
Copyright (C) 2022 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)
R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.
Natural language support but running in an English locale
R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.
Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.
Error: C stack usage 7976516 is too close to the limit
[Workspace loaded from ~/.RData]
With the same error:
Error: C stack usage 7976516 is too close to the limit
Showing up in the opening text.
It also does not save the packages I download from closing RStudio to opening it again. It also will not download devtools, with the same error popping up:
Error: C stack usage 7976884 is too close to the limit
My environment comes from:
source(renv/activate.r)
Changing this to my .Rproject directory doesn't help.
I know this error usually comes from something recursive in the code like a function calling itself, but honestly, I don't know how this could be happening.
I would be grateful if someone knew how to fix this error!