From bbolker at gmail.com  Wed Jul 17 15:10:48 2013
From: bbolker at gmail.com (Ben Bolker)
Date: Wed, 17 Jul 2013 13:10:48 +0000
Subject: [Rd] SweaveParseOptions, quoted commas, and knitr vignettes
References: <51E602B9.5090609@ufl.edu>
	<CANROs4e8-U=KhSV5j+JO8s5c3kwAXN9fSJRZC0hbdvaVdChvGQ@mail.gmail.com>
Message-ID: <loom.20130717T150919-176@post.gmane.org>

Yihui Xie <xie <at> yihui.name> writes:

> 
  [snip]

  thanks, that all makes sense.

> Two approaches to solve the problem:
> 
> 1. either you Depends on knitr,
> 2. or make install.packages() also install VignetteBuilder (specified
> in DESCRIPTION) when the user chooses to install from source, i.e.
> install.packages(..., type = 'source')
> 
  [snip]

> Or if you want a less cryptic error message, put a code chunk like
> this in your Rnw document:
> 
> <<setup, include=FALSE>>=
> library(knitr)
>  <at> 
> 
> I think R will emit an error that knitr was not installed, which can
> be more helpful for the users to realize the real problem.

  I like the third option here. It might be nice if this were documented
in the "Writing R extensions" manual, although I guess I shouldn't complain
until I volunteer to write a documentation patch ...

  Ben



[Rd] SweaveParseOptions, quoted commas, and knitr vignettes
Ben Bolker