From bc4b43ef2ad5c84429dfa8c78faaf8a8d7d49fae Mon Sep 17 00:00:00 2001 From: Garrick Aden-Buie Date: Wed, 19 Oct 2022 16:21:11 -0400 Subject: [PATCH] v0.11.1 (#743) --- DESCRIPTION | 2 +- NEWS.md | 4 +++- README.md | 2 +- cran-comments.md | 13 +++-------- man/get_tutorial_info.Rd | 31 ++++++++++++++++----------- man/rmd-fragments/learnr-overview.Rmd | 2 +- pkgdown/index.md | 2 +- 7 files changed, 29 insertions(+), 27 deletions(-) diff --git a/DESCRIPTION b/DESCRIPTION index 36731e64d..69a2f1727 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,7 +1,7 @@ Type: Package Package: learnr Title: Interactive Tutorials for R -Version: 0.11.0.9000 +Version: 0.11.1 Authors@R: c( person("Garrick", "Aden-Buie", , "garrick@rstudio.com", role = c("aut", "cre"), comment = c(ORCID = "0000-0002-7111-0077")), diff --git a/NEWS.md b/NEWS.md index b652e9ffe..be0d805e9 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,4 +1,6 @@ -# learnr (development version) +# learnr 0.11.1 + +This is a maintenance release that adjusts an example and several tests for CRAN. # learnr 0.11.0 diff --git a/README.md b/README.md index 02041af62..5a2c13dd0 100644 --- a/README.md +++ b/README.md @@ -18,7 +18,7 @@ community](https://img.shields.io/badge/community-learnr-blue?style=social&logo= The **learnr** package makes it easy to turn any [R -Markdown](http://rmarkdown.rstudio.com) document into an interactive +Markdown](http://rmarkdown.rstudio.com/) document into an interactive tutorial. Tutorials consist of content along with interactive components for checking and reinforcing understanding. Tutorials can include any or all of the following: diff --git a/cran-comments.md b/cran-comments.md index dac6161f9..d8fbdc66f 100644 --- a/cran-comments.md +++ b/cran-comments.md @@ -1,13 +1,6 @@ ## R CMD check results -0 errors | 0 warnings | 1 note +0 errors | 0 warnings | 0 notes -New maintainer: Garrick Aden-Buie -Old maintainer(s): Barret Schloerke - -## revdepcheck results - -We checked 14 reverse dependencies, comparing R CMD check results across CRAN and dev versions of this package. - -* We saw 0 new problems -* We failed to check 0 packages +This is a maintenance release to fix two issues +raised by CRAN checks after the 0.11.0 release. diff --git a/man/get_tutorial_info.Rd b/man/get_tutorial_info.Rd index 823fe67e7..d345e3a5a 100644 --- a/man/get_tutorial_info.Rd +++ b/man/get_tutorial_info.Rd @@ -108,20 +108,27 @@ the tutorial is completely initialized. If called in a non-reactive context, correspond to the current tutorial. } \examples{ -tutorial_rmd <- local({ - # Use a temp copy of "Hello learnr" tutorial for this example - src <- system.file( - "tutorials", "hello", "hello.Rmd", package = "learnr" - ) - dest <- tempfile(fileext = ".Rmd") - file.copy(src, dest) - dest -}) +if (rmarkdown::pandoc_available("1.4")) { + tutorial_rmd <- local({ + # Use a temp copy of "Hello learnr" tutorial for this example + src <- system.file( + "tutorials", "hello", "hello.Rmd", package = "learnr" + ) + dest <- tempfile(fileext = ".Rmd") + file.copy(src, dest) + dest + }) -get_tutorial_info(tutorial_rmd) + # ---- This is the example! ------------ # + info <- get_tutorial_info(tutorial_rmd) + # -------------------------------------- # -# clean up the temporary Rmd used in this example -unlink(tutorial_rmd) + # clean up the temporary Rmd used in this example + unlink(tutorial_rmd) + + # This is the result of the example + info +} } \seealso{ diff --git a/man/rmd-fragments/learnr-overview.Rmd b/man/rmd-fragments/learnr-overview.Rmd index df4520393..b5097724d 100644 --- a/man/rmd-fragments/learnr-overview.Rmd +++ b/man/rmd-fragments/learnr-overview.Rmd @@ -1,4 +1,4 @@ -The **learnr** package makes it easy to turn any [R Markdown](http://rmarkdown.rstudio.com) document into an interactive tutorial. Tutorials consist of content along with interactive components for checking and reinforcing understanding. Tutorials can include any or all of the following: +The **learnr** package makes it easy to turn any [R Markdown](http://rmarkdown.rstudio.com/) document into an interactive tutorial. Tutorials consist of content along with interactive components for checking and reinforcing understanding. Tutorials can include any or all of the following: 1. Narrative, figures, illustrations, and equations. diff --git a/pkgdown/index.md b/pkgdown/index.md index 2e0ee0ea8..6ddb24d5e 100644 --- a/pkgdown/index.md +++ b/pkgdown/index.md @@ -18,7 +18,7 @@ community](https://img.shields.io/badge/community-learnr-blue?style=social&logo= The **learnr** package makes it easy to turn any [R -Markdown](http://rmarkdown.rstudio.com) document into an interactive +Markdown](http://rmarkdown.rstudio.com/) document into an interactive tutorial. Tutorials consist of content along with interactive components for checking and reinforcing understanding. Tutorials can include any or all of the following: