title: Rstudio randomly & automatically runs source() function, loses most assigned variables from environment
body: <p>I have quite a long script in RStudio.</p>
  
  <p>A few times an hour, seemingly randomly, the console will print (names changed for security reasons):</p>
  
  <pre><code>source('~/R/Projects/thisproject/thisRscript.R', encoding = 'UTF-8')
  Parsed with column specification:
  cols(
    .default = col_logical(),
    var0 = col_double(),
    var1 = col_character(),
    var2 = col_character(),
    var3 = col_double(),
    var4 = col_double(),
    var5 = col_double(),
   # ... with 1363 more columns)
  See spec(...) for full column specifications.
  </code></pre>
  
  <p>Then all but a handful of variables (the ones I created near the top of the script, potentially they might be the ones that were present when I accidentally saved the "workspace image" a few days ago) will disappear from the environment and I'll have to rerun the script again to generate them.</p>
  
  <p>Anyone know why it is doing this or how to get it to stop? Could it be a RAM issue? (I am currently at 85% RAM utilisation and have ordered more, but if it is a different issue I would like to debug it in advance.)</p>