Skip to content
This repository
Browse code

Don't require knitr: vimcom already requires it.

  • Loading branch information...
commit 32e33ee16eb932c04b532d0932fec27ff27513a4 1 parent 426301a
Jakson Alves de Aquino authored September 11, 2012
2  ftplugin/rmd.vim
@@ -99,7 +99,7 @@ function! RMakePDF(t)
99 99
     update
100 100
     call RSetWD()
101 101
     let pdfcmd = "vim.interlace.rmd('" . expand("%:t") . "'"
102  
-    let pdfcmd = "require(knitr);" . pdfcmd . ", pdfout = '" . a:t  . "'"
  102
+    let pdfcmd = pdfcmd . ", pdfout = '" . a:t  . "'"
103 103
     if exists("g:vimrplugin_rmdcompiler")
104 104
         let pdfcmd = pdfcmd . ", compiler='" . g:vimrplugin_rmdcompiler . "'"
105 105
     endif
2  ftplugin/rnoweb.vim
@@ -114,7 +114,7 @@ function! RMakePDF(bibtex, knit)
114 114
     let pdfcmd = "vim.interlace.rnoweb('" . expand("%:t") . "'"
115 115
 
116 116
     if a:knit
117  
-        let pdfcmd = "require(knitr); " . pdfcmd . ', knit = TRUE'
  117
+        let pdfcmd = pdfcmd . ', knit = TRUE'
118 118
     endif
119 119
 
120 120
     if g:vimrplugin_latexcmd != "pdflatex"
3  ftplugin/rrst.vim
@@ -18,7 +18,7 @@
18 18
 "          Jose Claudio Faria
19 19
 "          Alex Zvoleff
20 20
 "
21  
-" Last Change: July 2, 2012  2:30PM
  21
+" Last Change: Tue Sep 11, 2012  04:57PM
22 22
 "==========================================================================
23 23
 
24 24
 " Only do this when not yet done for this buffer
@@ -97,7 +97,6 @@ function! RMakePDF()
97 97
     update
98 98
     call RSetWD()
99 99
     let pdfcmd = "vim.interlace.rrst('" . expand("%:t") . "'"
100  
-    let pdfcmd = "require(knitr);" . pdfcmd
101 100
     if exists("g:vimrplugin_rrstcompiler")
102 101
         let pdfcmd = pdfcmd . ", compiler='" . g:vimrplugin_rrstcompiler . "'"
103 102
     endif

0 notes on commit 32e33ee

Please sign in to comment.
Something went wrong with that request. Please try again.