Skip to content

Commit

Permalink
Fix parse error when R is out of date
Browse files Browse the repository at this point in the history
Fixes #2204
  • Loading branch information
jimhester committed Mar 23, 2020
1 parent e014e9f commit 6adac9d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# devtools (development version)

* New `build_rmd()` can build any `.Rmd` file in a clean session.
* `dev_sitrep()` now works correctly when R is out of date (#2204)

# devtools 2.2.2

Expand Down
2 changes: 1 addition & 1 deletion R/sitrep.R
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ print.dev_sitrep <- function(x, ...) {
kv_line("path", x$r_path, path = TRUE)
if (x$r_version < x$r_release_version) {
ui_todo('
{ui_field("R")} is out of date ({ui_value(x$r_version} vs {ui_value(x$r_release_version)})
{ui_field("R")} is out of date ({ui_value(x$r_version)} vs {ui_value(x$r_release_version)})
')
all_ok <- FALSE
}
Expand Down

0 comments on commit 6adac9d

Please sign in to comment.