Error(s) in re-building vignettes:
--- re-building 'bivariate.Rnw' using Sweave

Error: processing vignette 'bivariate.Rnw' failed with diagnostics:
 chunk 4 
Error in x[seq_len(n)] : object of type 'closure' is not subsettable

--- failed re-building 'bivariate.Rnw'

make[1]: Entering directory `/cygdrive/d/RCompile/CRANpkg/local/3.6/bivariate.Rcheck/vign_test/bivariate/vignettes'
make bivariate.pdf
make[2]: Entering directory `/cygdrive/d/RCompile/CRANpkg/local/3.6/bivariate.Rcheck/vign_test/bivariate/vignettes'
pdflatex bivariate.tex
This is pdfTeX, Version 3.14159265-2.6-1.40.16 (MiKTeX 2.9)
entering extended mode
(bivariate.tex
LaTeX2e <2015/10/01> patch level 2
Babel <3.9n> and hyphenation patterns for 69 languages loaded.
(D:\Compiler\texmf\tex\latex\base\article.cls
Document Class: article 2014/09/29 v1.4h Standard LaTeX document class
(D:\Compiler\texmf\tex\latex\base\size10.clo))
(D:\Compiler\texmf\tex\latex\geometry\geometry.sty
(D:\Compiler\texmf\tex\latex\graphics\keyval.sty)
(D:\Compiler\texmf\tex\generic\oberdiek\ifpdf.sty)
(D:\Compiler\texmf\tex\generic\oberdiek\ifvtex.sty)
(D:\Compiler\texmf\tex\generic\ifxetex\ifxetex.sty)
(D:\Compiler\texmf\tex\latex\geometry\geometry.cfg))
(D:\Compiler\texmf\tex\latex\ltxmisc\parskip.sty)
(D:\Compiler\texmf\tex\latex\tools\verbatim.sty)
(C:\Users\CRAN\AppData\Roaming\MiKTeX\2.9\tex\latex\amsmath\amsmath.sty
For additional information on amsmath, use the `?' option.
(C:\Users\CRAN\AppData\Roaming\MiKTeX\2.9\tex\latex\amsmath\amstext.sty
(C:\Users\CRAN\AppData\Roaming\MiKTeX\2.9\tex\latex\amsmath\amsgen.sty))
(C:\Users\CRAN\AppData\Roaming\MiKTeX\2.9\tex\latex\amsmath\amsbsy.sty)
(C:\Users\CRAN\AppData\Roaming\MiKTeX\2.9\tex\latex\amsmath\amsopn.sty))
(D:\Compiler\texmf\tex\latex\amsfonts\amssymb.sty
(D:\Compiler\texmf\tex\latex\amsfonts\amsfonts.sty))
(D:\Compiler\texmf\tex\latex\graphics\color.sty
(D:\Compiler\texmf\tex\latex\00miktex\color.cfg)
(D:\Compiler\texmf\tex\latex\pdftex-def\pdftex.def
(D:\Compiler\texmf\tex\generic\oberdiek\infwarerr.sty)
(D:\Compiler\texmf\tex\generic\oberdiek\ltxcmds.sty)))
(D:/RCompile/recent/R/share/texmf/tex/latex\Sweave.sty
(D:\Compiler\texmf\tex\latex\base\ifthen.sty)
(D:\Compiler\texmf\tex\latex\graphics\graphicx.sty
(D:\Compiler\texmf\tex\latex\graphics\graphics.sty
(D:\Compiler\texmf\tex\latex\graphics\trig.sty)
(D:\Compiler\texmf\tex\latex\00miktex\graphics.cfg)))
(D:\Compiler\texmf\tex\latex\fancyvrb\fancyvrb.sty
Style option: `fancyvrb' v2.7a, with DG/SPQR fixes, and firstline=lastline fix 
<2008/02/07> (tvz)) (D:\Compiler\texmf\tex\latex\base\textcomp.sty
(D:\Compiler\texmf\tex\latex\base\ts1enc.def))
(D:\Compiler\texmf\tex\latex\base\fontenc.sty
(D:\Compiler\texmf\tex\latex\base\t1enc.def))
(D:\Compiler\texmf\tex\latex\ae\ae.sty
(D:\Compiler\texmf\tex\latex\base\fontenc.sty
(D:\Compiler\texmf\tex\latex\base\t1enc.def)
(D:\Compiler\texmf\tex\latex\ae\t1aer.fd))))
No file bivariate.aux.
(D:\Compiler\texmf\tex\latex\base\ts1cmr.fd)
*geometry* driver: auto-detecting
*geometry* detected driver: pdftex
(C:\Users\CRAN\AppData\Roaming\MiKTeX\2.9\tex\context\base\supp-pdf.mkii
[Loading MPS to PDF converter (version 2006.09.02).]
) (D:\Compiler\texmf\tex\generic\oberdiek\pdftexcmds.sty
(D:\Compiler\texmf\tex\generic\oberdiek\ifluatex.sty))
(D:\Compiler\texmf\tex\latex\oberdiek\epstopdf-base.sty
(D:\Compiler\texmf\tex\latex\oberdiek\grfext.sty
(D:\Compiler\texmf\tex\generic\oberdiek\kvdefinekeys.sty))
(D:\Compiler\texmf\tex\latex\oberdiek\kvoptions.sty
(D:\Compiler\texmf\tex\generic\oberdiek\kvsetkeys.sty
(D:\Compiler\texmf\tex\generic\oberdiek\etexcmds.sty))))
(D:\Compiler\texmf\tex\latex\amsfonts\umsa.fd)
(D:\Compiler\texmf\tex\latex\amsfonts\umsb.fd)
Overfull \hbox (12.80406pt too wide) in paragraph at lines 37--37
 []$ 
[1{C:/Users/CRAN/AppData/Local/MiKTeX/2.9/pdftex/config/pdftex.map}]
(D:\Compiler\texmf\tex\latex\ae\t1aett.fd))
Runaway argument?
! File ended while scanning use of \FancyVerbGetLine.
<inserted text> 
                \par 
<*> ./bivariate.tex
                   
? 
! Emergency stop.
<inserted text> 
                \par 
<*> ./bivariate.tex
                   
!  ==> Fatal error occurred, no output PDF file produced!
Transcript written on bivariate.log.
make[2]: *** [bivariate.pdf] Error 1
make[2]: Leaving directory `/cygdrive/d/RCompile/CRANpkg/local/3.6/bivariate.Rcheck/vign_test/bivariate/vignettes'
make[1]: *** [default] Error 2
make[1]: Leaving directory `/cygdrive/d/RCompile/CRANpkg/local/3.6/bivariate.Rcheck/vign_test/bivariate/vignettes'
Error in tools:::buildVignettes(dir = "d:/Rcompile/CRANpkg/local/3.6/bivariate.Rcheck/vign_test/bivariate",  : 
  running 'make' failed
Execution halted