Skip to content

Commit 1f77a3e

Browse files
committed
switch arguments
1 parent 6ecd93f commit 1f77a3e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

R/render.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,9 +96,9 @@ render_book = function(
9696
'The file ', main, ' exists. Please delete it if it was automatically generated, ',
9797
'or set a different book_filename option in _bookdown.yml.'
9898
)
99-
on.exit(add = TRUE, if (file.exists(main)) {
99+
on.exit(if (file.exists(main)) {
100100
message('Please delete ', main, ' after you finish debugging the error.')
101-
})
101+
}, add = TRUE)
102102
opts$set(book_filename = main) # store the book filename
103103

104104
files = setdiff(source_files(format, config), main)

0 commit comments

Comments
 (0)