andrewheiss / SublimeKnitr

Plugin that adds knitr Markdown and LaTeX support in Sublime Text 2 and 3
71 stars 11 forks source link

can not find the path problem in Windows #40

Open liyun831229 opened 8 years ago

liyun831229 commented 8 years ago

Hi, When I tried to run build for the RMD file in sublime, I got the following error. the system cannot find the path specified. [Finished in 0.3s with exit code 1] [cmd: ['Rscript -e "library(knitr); knit(\'C:\Users\xx\Desktop\test\test.Rmd\', output=\'C:\Users\xx\Desktop\test/test.md\')"; open C:\Users\xx\Desktop\test/test.md']] [dir: C:\Users\yunli1\Desktop\test] [path: ....]

The truth is if I change the command to: C:\Users\xx\Desktop\test>Rscript -e "library(knitr); knit('C:\Users\xx \Desktop\test\test.Rmd', output='C:\Users\xx\Desktop\test\test.md')" and run in cmd the Rscript works. Any idea how to resolve the path problem in windows