Skip to content

Commit e19b942

Browse files
authored
v0.11.5 (#805)
1 parent 20e4cb6 commit e19b942

File tree

10 files changed

+248
-228
lines changed

10 files changed

+248
-228
lines changed

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Type: Package
22
Package: learnr
33
Title: Interactive Tutorials for R
4-
Version: 0.11.4.9000
4+
Version: 0.11.5
55
Authors@R: c(
66
person("Garrick", "Aden-Buie", , "garrick@posit.co", role = c("aut", "cre"),
77
comment = c(ORCID = "0000-0002-7111-0077")),

NEWS.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,18 @@
1-
# learnr (development version)
1+
# learnr 0.11.5
2+
3+
## New Features
24

35
- You can now customize the "continue" button text in sub-topics by adding 'data-continue-text' with your custom label as a property of the section heading — e.g. `### Subtopic Title {data-continue-text="Show Solution"}` (@dave-mills #777).
46

5-
- learnr tutorials now work when Quarto comment-style chunk options are used to set the chunk `label` (thanks @jimjam-slam, #795).
7+
- A new `exercise.pipe` tutorial or exercise chunk option can now be used to determine which pipe operator is used for interactive exercises. The default is `"|>"` (the native R pipe) when the tutorial is rendered with R >= 4.1.0, or `"%>%"` otherwise (the magrittr pipe). You can set the pipe used for the tutorial using `tutorial_options()`, or you can use `exercise.pipe` as a knitr chunk option on an individual exercise chunk. (#804)
68

7-
- When the `LC_ALL` environment variable is `"C"` or `"C.UTF-8"`, R may ignore the `LANGUAGE` environment variable, which means that learnr may not be able to control the language of R's messages. learnr's tests no longer test R message translations in these cases. If you are deploying a tutorial written in a language other than English, you should ensure that the `LC_ALL` environment variable is not set to `"C"` or `"C.UTF-8"` and you may need to set the `LANGUAGE` variable via an `.Renviron` file rather than relying on learnr (#801).
9+
## Bug fixes and improvements
10+
11+
- learnr tutorials now work when Quarto comment-style chunk options are used to set the chunk `label` (thanks @jimjam-slam, #795).
812

913
- Added a new quick restore option that restores both the last submitted exercise code and the output of that submission, if the output is available to be restored. This option is enabled by setting the global option `tutorial.quick_restore = 2` or the environment variable `TUTORIAL_QUICK_RESTORE=2`. This option augments the quick restore value when `TRUE` or `1`, wherein only the last submitted **code** is restored, such that users will need to click the "Submit" button to evaluate and see the output. (#794)
1014

11-
- A new `exercise.pipe` tutorial or exercise chunk option can now be used to determine which pipe operator is used for interactive exercises. The default is `"|>"` (the native R pipe) when the tutorial is rendered with R >= 4.1.0, or `"%>%"` otherwise (the magrittr pipe). You can set the pipe used for the tutorial using `tutorial_options()`, or you can use `exercise.pipe` as a knitr chunk option on an individual exercise chunk. (#804)
15+
- When the `LC_ALL` environment variable is `"C"` or `"C.UTF-8"`, R may ignore the `LANGUAGE` environment variable, which means that learnr may not be able to control the language of R's messages. learnr's tests no longer test R message translations in these cases. If you are deploying a tutorial written in a language other than English, you should ensure that the `LC_ALL` environment variable is not set to `"C"` or `"C.UTF-8"` and you may need to set the `LANGUAGE` variable via an `.Renviron` file rather than relying on learnr (#801).
1216

1317
# learnr 0.11.4
1418

cran-comments.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
This is a patch release containing a few small bug fixes and minor features.
1+
This is a patch release primarily containing a fix requested by CRAN to adjust our tests in r-devel. We no longer expect to be able to adjust the language of R messages when `LC_ALL="C"` or `"C.UTF-8"`.
22

33
## R CMD check results
44

55
0 errors | 0 warnings | 0 notes
66

77
## revdepcheck results
88

9-
We checked 15 reverse dependencies (14 from CRAN + 1 from Bioconductor), comparing R CMD check results across CRAN and dev versions of this package.
9+
We checked 20 reverse dependencies (19 from CRAN + 1 from Bioconductor), comparing R CMD check results across CRAN and dev versions of this package.
1010

1111
* We saw 0 new problems
1212
* We failed to check 0 packages

0 commit comments

Comments
 (0)