Skip to content

Commit

Permalink
apply a workaround to the annoying bug in Rscript in R 3.5.0: https:/…
Browse files Browse the repository at this point in the history
  • Loading branch information
yihui committed Apr 28, 2018
1 parent 4bfe16f commit 82c1fab
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: blogdown
Type: Package
Title: Create Blogs and Websites with R Markdown
Version: 0.6.1
Version: 0.6.2
Authors@R: c(
person("Yihui", "Xie", role = c("aut", "cre"), email = "xie@yihui.name", comment = c(ORCID = "0000-0003-0645-5666")),
person("Beilei", "Bian", role = "ctb"),
Expand Down
2 changes: 2 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# CHANGES IN blogdown VERSION 0.7 (unreleased)

## BUG FIXES

- Applied a workaround for the bug in the `Rscript` command: https://stat.ethz.ch/pipermail/r-devel/2018-April/075897.html (reported from https://stackoverflow.com/q/50077412).

# CHANGES IN blogdown VERSION 0.6

Expand Down
4 changes: 3 additions & 1 deletion R/render.R
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,9 @@ build_rmds = function(files) {
}

render_page = function(input, script = 'render_page.R') {
args = c(pkg_file('scripts', script), input, getwd())
# needs --slave due to this bug in Rscript:
# https://stat.ethz.ch/pipermail/r-devel/2018-April/075897.html
args = c('--slave', pkg_file('scripts', script), input, getwd())
if (Rscript(shQuote(args)) != 0) stop("Failed to render '", input, "'")
}

Expand Down

0 comments on commit 82c1fab

Please sign in to comment.