4

Some context on my environment:

I am running R Studio in a docker container called rocker/verse. I downloaded this dataset from Kaggle, which has about 470 MB.

When working with it, at some point RStudio restart. It does't happen after a specific call, and I've seen the same problem when working with other projects. Though it is not related to my code, I am posting it bellow.

library(data.table)
fraud<- fread("path.csv")
fraud1<- sort(sample(nrow(fraud), nrow(fraud)*.7))
train<- fraud[fraud1, ]
test<-fraud[-fraud1, ]

Usually on the console this message is printed:

Error: Error occurred during transmission

And, this pop up is also showed:

R Session Error

I have no idea what is causing it. I would appreciate any help.

Eduardo Reis
  • 1,691
  • 1
  • 22
  • 45

2 Answers2

1

Delete the .Rhistory files associated with the installation and any open project.

Scransom
  • 3,175
  • 3
  • 31
  • 51
  • Trying removing .Rhistory, remove .config/rstudio .local/share/rstudio all failed to eliminate the problem. This problem happened to me after migrating R from 4.0 to 4.2 – Kemin Zhou May 24 '22 at 21:05
0

You have a problem with your user data files for Rstudio. Follow the hints given here: https://community.rstudio.com/t/rstudio-server-error-occurred-during-transmission/84258 and here: https://support.rstudio.com/hc/en-us/articles/218730228-Resetting-a-user-s-state-on-RStudio-Server.

tkx68
  • 69
  • 1
  • 1
  • 6
  • While this link may answer the question, it is better to include the essential parts of the answer here and provide the link for reference. Link-only answers can become invalid if the linked page changes. – Jan Aug 21 '22 at 08:42