Skip to content

Commit

Permalink
move --quiet before the script so that commandArgs(TRUE) can exclude it
Browse files Browse the repository at this point in the history
  • Loading branch information
yihui committed Mar 24, 2016
1 parent b77cbe3 commit 44029b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/site.R
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ bookdown_site = function(input, ...) {
# perform the render
result = 0
if (length(script <- existing_r('_render', TRUE))) {
result = Rscript(c(script, if (quiet) '--quiet'))
result = Rscript(c(if (quiet) '--quiet', script))
} else if (file.exists('Makefile')) {
result = system2('make')
} else {
Expand Down

0 comments on commit 44029b9

Please sign in to comment.