Skip to content

Commit

Permalink
reindent by 2 spaces instead of default 4
Browse files Browse the repository at this point in the history
  • Loading branch information
yihui committed Nov 9, 2012
1 parent dcb21de commit 75757c1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions _bin/knit
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ knit_hooks$set(pars = function(before, options, envir) {
if (before) do.call(par, options$pars)
}, rgl = hook_rgl, crop = hook_pdfcrop)

options(reindent.spaces = 2) # formatR

local({
f = commandArgs(TRUE)
base = sub('\\.[Rr]md$', '', basename(f))
Expand Down

0 comments on commit 75757c1

Please sign in to comment.