jalvesaq / Nvim-R

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

Feature request #69

Closed epwalsh closed 8 years ago

epwalsh commented 8 years ago

Hi jalvesaq, first of all let me say that I am huge fan of this plugin and also vimcmdline. There is one thing I noticed when using this plugin: when knitting an Rmd file to a beamer presentation, for example, the resulting pdf is opened in a new window every time. It would be better if the pdf was only opened after the first time the file is knit. I realize I can set R_openpdf = 0 in my vimrc file, but then it won't open automatically when I first knit.

Thanks!

jalvesaq commented 8 years ago

What is your pdf viewer?

Valid values for R_openpdf are 0, 1 and 2 (or other higher integer). Please, see:

:h R_openpdf
epwalsh commented 8 years ago

Using skim. When R_openpdf is set to 1, it still opens every time I knit.

jalvesaq commented 8 years ago

I believe the bug is fixed now. Can you please confirm?

epwalsh commented 8 years ago

I am still getting the same issue

jalvesaq commented 8 years ago

The bug is fixed here. When R_openpdf = 1, the PDF is open only the first time I do \kp.

epwalsh commented 8 years ago

I am still having this problem when knitting an Rmd file to either (1) a pdf using \kp or (2) a beamer presentation using \kl

jalvesaq commented 8 years ago

It should be fixed now. Could you please try again?

epwalsh commented 8 years ago

Yes! I can confirm it's working. Thanks!