REditorSupport / sublime-ide-r

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

Cannot run R code from Sublime text3 #39

Open Thinking2018 opened 4 years ago

Thinking2018 commented 4 years ago

I have installed sublime text3, R-IDE,LSP,and R3.6.2 But I am not able to run a Rscript from it. I choose the Exec in the menu image

and press enter, but it shows the following error

image

Fatal error: option '-e' requires a non-empty argument

I have no idea about this

I use windows10

randy3k commented 4 years ago

R-IDE does not run R script directly. The Exec option is used to run any arbitrary R command from the current working directory. Did you see any errors in the console by the way?

Thinking2018 commented 4 years ago

So how to use R-IDE to run R script ? The console only give me such error message that Fatal error: option '-e' requires a non-empty argument

randy3k commented 4 years ago

That’s not the console. What you saw was the output panel. I am referring to the sublime console (Ctrl+backtick to open).

R-IDE does not run R script. For that, you need SendCode and a terminal. Terminal could be open in an external program for example cmder or in Terminus (a Sublime Text package).

Thinking2018 commented 4 years ago

OK, I see. I do not have a console in sublime, so I need to install one. Thanks!