vim-pandoc / vim-rmarkdown

Rmarkdown support for vim
98 stars 26 forks source link

Output is written to home directory #36

Closed ptr-64 closed 3 years ago

ptr-64 commented 4 years ago

Hello, I hope I didn't ignore any issues template (I couldn't find one on the repo). The plugin works beautifully except when I want to compile the Rmd file, the output is written to my home directory(~/) instead of my work directory.

Reproduction Steps

Write/ save the rmarkdown file and run :RMarkdown

Expected Behavior

Find the .html in my work folder

Actual Behavior

Nothing in my work folder other than the rmarkdown file, and the output (.pdf, or html) shows up in my home directory.

Vim version

VIM - Vi IMproved 8.2 (2019 Dec 12, compiled Aug 15 2020 08:25:34) Included patches: 1-1456 Compiled by Arch Linux

OS

Manjaro Linux Gnome Edition Kernel: 5.7.15-1 Gnome: 3.36.5

PS: I can just open another terminal and use rmarkdown::render("<input>", "<output>_document") so this is not a high priority issue. I was just wondering if I broke something on my end possibly.

Thanks