Skip to content

Commit

Permalink
emit a message if the RStudio version is too low (current release is …
Browse files Browse the repository at this point in the history
…0.99.902)
  • Loading branch information
yihui committed Jul 11, 2016
1 parent 6fbd763 commit 49283ae
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions R/render.R
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,13 @@ render_book = function(
force_knit = FALSE, preview = FALSE, encoding = 'UTF-8'
) {

if (requireNamespace('rstudioapi', quietly = TRUE) && rstudioapi::isAvailable() &&
!rstudioapi::isAvailable('0.99.1000')) {
message(
'You are recommended to use a newer version of RStudio IDE to compile the book: ',
'https://www.rstudio.com/products/rstudio/download/preview/'
)
}
format = NULL # latex or html
if (is.list(output_format)) {
format = output_format$bookdown_output_format
Expand Down

0 comments on commit 49283ae

Please sign in to comment.