Skip to content

Commit

Permalink
stop_on_error has been deprecated, use error=FALSE instead
Browse files Browse the repository at this point in the history
  • Loading branch information
yihui committed Sep 16, 2013
1 parent e8b9eaa commit 68a348e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions _bin/knit
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@ render_jekyll()

opts_chunk$set(
pars = list(mar = c(4, 4, .1, .1), mgp = c(2, 1, 0), bg = 'white'),
cache = TRUE
cache = TRUE, error = FALSE # stop on error
)
knit_hooks$set(pars = function(before, options, envir) {
if (before) do.call(par, options$pars)
}, rgl = hook_rgl, crop = hook_pdfcrop)
opts_knit$set(animation.fun = hook_scianimator, stop_on_error = 2L)
opts_knit$set(animation.fun = hook_scianimator)

invisible(local({
f = commandArgs(TRUE)
Expand Down

0 comments on commit 68a348e

Please sign in to comment.