jalvesaq / Nvim-R

Vim plugin to work with R
GNU General Public License v2.0
968 stars 126 forks source link

`RQuarto()` should escape Windows path seperator before sending to R #798

Closed hongyuanjia closed 10 months ago

hongyuanjia commented 10 months ago

RQuarto() did not handle the Windows path specifically, which makes quarto::quarto_*() error on Windows.

https://github.com/jalvesaq/Nvim-R/blob/be3ee4177ef869ade1d3f74923040c89c0a4e7f9/ftplugin/quarto_nvimr.vim#L12

quarto::quarto_preview("C:\Users\hongyuanjia\test\index.qmd")
#> Error: '\U' used without hex digits in character string (<input>:1:28)   
hongyuanjia commented 10 months ago

I have submitted a small PR #799 for fixing.

jalvesaq commented 10 months ago

I merged it. Thank you!