RStudio googlesheets error C stack usage too close to the limit

googlesheets
#1

I am working on linking my googlesheets to RStudio, but getting an error when trying to list the avaliable googlesheets. (On MacOS)

library(googlesheets)
gs_auth(new_user = TRUE)
gs_ls()
Error: C stack usage 7969952 is too close to the limit

I have tried increasing the C stack usage limit through the Mac terminal, but it still runs the same error when I have tried it again. I am using the newest versions of R and RStudio.

0 Likes

#2

What's the output of Cstack_info() for you when you run it in R?

This Stack Overflow thread has some suggestions:

0 Likes

#3

When I run Stack_info() in R, it gives this:

Cstack_info()
size current direction eval_depth
7969177 11824 1 2

I've looked at that thread, and it suggests to increase the stack usage before opening R which I have tried but didn't seem to work.

0 Likes

#4

Have you tried running this on just a subfolder (with, presumably, fewer files)?

0 Likes

#5

Yeah, i've tried this too! and tried linking it to a google account with only one spreadsheet in and it still gave me the same error.

0 Likes

#6

Are you in a fresh R session? See, for example, the recommendations in this thread:

0 Likes

#7

Hi all,

I have the same problem. Rebooting my instance, cleaning my workspace and restarting my session did not help. The problem started to appear 5 days ago. Before it worked without problems.

I reinstalled the package with all dependencies, but did not see any changes.

0 Likes