REditorSupport / sublime-ide-r

R-IDE: Make Sublime Text a perfect IDE for R
MIT License
112 stars 7 forks source link

Broken File Bits Generated in Working Directory #44

Open monovich opened 4 years ago

monovich commented 4 years ago

I am using Sublime with SendCode, Terminus, radian (though I sometimes use regular R console), and R-IDE with great success. Other than the terminus/radian slow-down bug this report is the only issue I've had with this configuration.

In short, somewhat inconsistently and infrequently, I will notice that after running some code in an R session with the aforementioned configuration, I will end up with random improperly formatted files in my working directory. The names of these files almost always includes lines of code run in my scripts. Examples names include:

cale(t(transformed_counts), center=TRUE, scale=TRUE)) ->-

eaRes = fgsea(pathways = msigdbr(species = "Mus musculus", category = "H"),

(x=NES,

sic() +

(fill = -log10(padj),

v(path) ->-

For several of these, the functions being executed are pretty easily distinguished. When these files are opened you are presented with various text. I've included a snippet below of one such file:

               SSUUMMMMAARRYY OOFF LLEESSSS CCOOMMMMAANNDDSS

  Commands marked with * may be preceded by a number, _N.
  Notes in parentheses indicate the behavior if _N is given.
  A key preceded by a caret indicates the Ctrl key; thus ^K is ctrl-K.

  h  H                 Display this help.
  q  :q  Q  :Q  ZZ     Exit.
  ---------------------------------------------------------------------------

                       MMOOVVIINNGG

  e  ^E  j  ^N  CR  *  Forward  one line   (or _N lines).
  y  ^Y  k  ^K  ^P  *  Backward one line   (or _N lines).
  f  ^F  ^V  SPACE  *  Forward  one window (or _N lines).
  b  ^B  ESC-v      *  Backward one window (or _N lines).
  z                 *  Forward  one window (and set window to _N).
 w                 *  Backward one window (and set window to _N).
 ESC-SPACE         *  Forward  one window, but don't stop at end-of-file.
 d  ^D             *  Forward  one half-window (and set half-window to _N).
 u  ^U             *  Backward one half-window (and set half-window to _N).
 ESC-)  RightArrow *  Right one half screen width (or _N positions).
 ESC-(  LeftArrow  *  Left  one half screen width (or _N positions).
 ESC-}  ^RightArrow   Right to last column displayed.
 ESC-{  ^LeftArrow    Left  to first column.
 F                    Forward forever; like "tail -f".
 ESC-F                Like F but stop when search pattern is found.
 r  ^R  ^L            Repaint screen.
 R                    Repaint screen, discarding buffered input.
    ---------------------------------------------------
    Default "window" is the screen height.
    Default "half-window" is half of the screen height.
---------------------------------------------------------------------------

I suspect there is an infrequent trigger for this behavior but I'm not exactly sure what it is. Any help would be much appreciated.