REditorSupport / sublime-ide-r

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

Directory issues? #5

Closed tford9 closed 5 years ago

tford9 commented 5 years ago

I've installed the package in Sublime as the instructions suggest, but when attempting to build I am getting this error:

Error: unexpected input in "rmarkdown::render(C:\" Execution halted [Finished in 0.6s with exit code 1] [cmd: ['R.exe', '--slave', '-e', 'rmarkdown::render("C:\Users\user\Desktop\place1\place2\h_1\h1.Rmd", encoding = "UTF-8")']] [dir: C:\Users\user\Desktop\place1\place2\h_1]

I've added the R bin to my PATH, and swapped between directly addressing the bin and just relying on the PATH env variable to no avail. Any ideas? The fact that the error message is cut off where it is, makes me think that the function call might be escaping the address, or failing to.

randy3k commented 5 years ago

it seems a typical windows issue of escaping backward slashes.

randy3k commented 5 years ago

should be fixed by 304538b

tford9 commented 5 years ago

In the package settings, should the path still look like this?

delete

randy3k commented 5 years ago

Yes

tford9 commented 5 years ago

Hmm, I'm getting the same error message. I used the package manager to install the first time, but I just cloned the repo (from master) into the packages directory (replacing the old one). Is there a step I'm missing?

tford9 commented 5 years ago

Apologies, here is the updated error message:

Error: unexpected input in "rmarkdown::render(C:\" Execution halted [Finished in 0.7s with exit code 1] [cmd: ['C:\Program Files\R\R-3.5.1\bin\R.exe', '--slave', '-e', 'rmarkdown::render("C:\Users\user\Desktop\place1\place2\h1\h1.Rmd", encoding = "UTF-8")']] [dir: C:\Users\user\Desktop\place1\place2\h1]

I just noticed that the message renders differently than it pastes... image

randy3k commented 5 years ago

Are you checking out the master branch?

tford9 commented 5 years ago

Yes, I believe so. image

randy3k commented 5 years ago

Let me check later today.

randy3k commented 5 years ago

Please check again. bc743fb39b9a3dcd25dfa92c4664b97d12c28960 should have addressed the issue.