Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Aggressive Prerender checks within rmarkdown #179

Merged
merged 9 commits into from
Oct 8, 2018
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 7 additions & 4 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
Package: learnr
Type: Package
Title: Interactive Tutorials for R
Version: 0.9.2
Version: 0.9.2.9000
Authors@R: c(
person("Barbara", "Borges", role = c("aut", "cre"), email = "barbara@rstudio.com"),
person("Barret", "Schloerke", role = c("aut", "cre"), email = "barret@rstudio.com"),
person("JJ", "Allaire", role = "aut", email = "jj@rstudio.com"),
person("Barbara", "Borges", role = "aut", email = "barbara@rstudio.com"),
person(family = "RStudio, Inc.", role = "cph"),
person(family = "Ajax.org B.V.", role=c("ctb", "cph"), comment= "Ace library"),
person("Zeno", "Rocha", role = c("ctb", "cph"), comment = "clipboard.js library"),
Expand All @@ -13,7 +14,7 @@ Authors@R: c(
person(family = "Quicken Loans", role = "cph", comment = "SlickQuiz library"),
person(family = "Mozilla", role = c("ctb", "cph"), comment = "localforage library")
)
Description: Create interactive tutorials using R Markdown. Use a combination
Description: Create interactive tutorials using R Markdown. Use a combination
of narrative, figures, videos, exercises, and quizzes to create self-paced
tutorials for learning about R and R packages.
License: Apache License 2.0 | file LICENSE
Expand All @@ -32,7 +33,9 @@ Imports:
knitr (>= 1.14),
markdown,
shiny (>= 1.0),
rmarkdown (>= 1.8)
rmarkdown (>= 1.11)
Remotes:
rstudio/rmarkdown#1420
Encoding: UTF-8
LazyData: true
RoxygenNote: 6.0.1
Expand Down
5 changes: 4 additions & 1 deletion NEWS.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
learnr 0.9.3
learnr 0.9.3 (unreleased)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

0.9.2.9000

===========

* Fixed a spurious console warning when running exercises using Pandoc 2.0. ([#154](https://github.com/rstudio/learnr/issues/154))

* Aggressively rerender prerendered tutorials in favor of a cohesive exercise environment ([#169](https://github.com/rstudio/learnr/issues/169), [#179](https://github.com/rstudio/learnr/pull/179), and [rstudio/rmarkdown#1420](https://github.com/rstudio/rmarkdown/pull/1420))


learnr 0.9.2
===========

Expand Down
4 changes: 1 addition & 3 deletions R/run.R
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,6 @@ run_tutorial <- function(name, package, shiny_args = NULL) {

# run within tutorial wd and ensure we don't call rmarkdown::render
withr::with_dir(tutorial_path, {
withr::with_envvar(c(RMARKDOWN_RUN_PRERENDER = "0"), {
rmarkdown::run(file = NULL, dir = tutorial_path, shiny_args = shiny_args)
})
rmarkdown::run(file = NULL, dir = tutorial_path, shiny_args = shiny_args)
})
}