Skip to content

Commit e0456c6

Browse files
Release learnr 0.11.3 (#769)
Co-authored-by: Garrick Aden-Buie <garrick@adenbuie.com>
1 parent 7648a1f commit e0456c6

File tree

7 files changed

+92
-27
lines changed

7 files changed

+92
-27
lines changed

DESCRIPTION

Lines changed: 3 additions & 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.2.9000
4+
Version: 0.11.3
55
Authors@R: c(
66
person("Garrick", "Aden-Buie", , "garrick@posit.co", role = c("aut", "cre"),
77
comment = c(ORCID = "0000-0002-7111-0077")),
@@ -56,6 +56,7 @@ Imports:
5656
utils,
5757
withr
5858
Suggests:
59+
bslib,
5960
callr,
6061
DBI (>= 0.4-1),
6162
httpuv,
@@ -64,6 +65,7 @@ Suggests:
6465
RSQLite,
6566
rstudioapi (>= 0.11),
6667
shinytest2,
68+
sortable,
6769
testthat (>= 3.0.3)
6870
VignetteBuilder:
6971
knitr

NEWS.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
# learnr (development version)
1+
# learnr 0.11.3
22

33
- Fixed an issue that prevented authors from using symbols, such as `T` or a variable, as the value of the `exercise` chunk option, which caused tutorials with chunks with `exercise = T` to fail to render (thanks @cknotz #757, #758).
44

55
- The embedded Ace editor used in learnr exercises now defaults to a tab width of 2, aligning with the Tidyverse style guide (#761).
66

7-
- Add a fallback to generate a comprehensible English feedback message for code that fails to parse because it contains non-ASCII characters. Previously, if i18next was unavailable, the feedback would contain uninterpolated i18next markup. Now the feedback is pre-interpolated so students will always see a comprehensible message (#765).
7+
- learnr now pre-renders (in English) the feedback message it provides when non-ASCII characters are included in submitted unparsable R code. This makes the feedback useful even if learnr's in-browser translations aren't available (#765).
88

99
# learnr 0.11.2
1010

@@ -187,7 +187,7 @@ This is a maintenance release that adjusts an example and several tests for CRAN
187187
- Many of the HTML dependencies used by learnr have been updated to more recent versions (#655). learnr now uses:
188188
- [Ace](https://ace.c9.io/) version [1.10.1](https://github.com/ajaxorg/ace/blob/ff3dd698/CHANGELOG.md)
189189
- [clipboard.js](https://clipboardjs.com/) version [2.0.10](https://github.com/zenorocha/clipboard.js/releases)
190-
- [Bootbox](http://bootboxjs.com/) version [5.5.2](https://github.com/makeusabrew/bootbox/blob/master/CHANGELOG.md)
190+
- [Bootbox](https://bootboxjs.com/) version [5.5.2](https://github.com/bootboxjs/bootbox/blob/HEAD/CHANGELOG.md)
191191
- [i18next](https://www.i18next.com/) version [21.6.10](https://github.com/i18next/i18next/blob/master/CHANGELOG.md)
192192

193193
- learnr’s knitr hooks are now set by the `learnr::tutorial` R Markdown format. They are also registered for any tutorials run by `run_tutorial()` (thanks @czucca #598, #599).

cran-comments.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
1+
This is a patch release containing a few small bug fixes and minor features.
2+
13
## R CMD check results
24

35
0 errors | 0 warnings | 0 notes
46

5-
This is a maintenance release to fix a failing test in non-UTF-8 compatible environments.
7+
## revdepcheck results
8+
9+
We checked 14 reverse dependencies (13 from CRAN + 1 from Bioconductor), comparing R CMD check results across CRAN and dev versions of this package.
10+
11+
* We saw 0 new problems
12+
* We failed to check 0 packages

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@
99
"build:esbuild": "node learnr-js/build.js",
1010
"lint": "standard --fix learnr-js",
1111
"copy": "npm run copy:clipboard && npm run copy:bootbox && npm run copy:i18next",
12-
"copy:clipboard": "cpy 'node_modules/clipboard/dist/clipboard.min.js' inst/lib/clipboardjs",
13-
"copy:bootbox": "cpy 'node_modules/bootbox/dist/bootbox.min.js' inst/lib/bootbox",
14-
"copy:i18next": "cpy 'node_modules/i18next/i18next.min.js' inst/lib/i18next"
12+
"copy:clipboard": "cpy 'clipboard.min.js' ../../../inst/lib/clipboardjs --cwd node_modules/clipboard/dist/",
13+
"copy:bootbox": "cpy 'bootbox.min.js' ../../../inst/lib/bootbox --cwd node_modules/bootbox/dist/",
14+
"copy:i18next": "cpy 'i18next.min.js' ../../inst/lib/i18next --cwd node_modules/i18next/"
1515
},
1616
"devDependencies": {
1717
"@babel/cli": "^7.16.8",

revdep/README.md

Lines changed: 63 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,71 @@
11
# Platform
22

3-
|field |value |
4-
|:--------|:----------------------------|
5-
|version |R version 3.6.1 (2019-07-05) |
6-
|os |macOS Catalina 10.15.2 |
7-
|system |x86_64, darwin15.6.0 |
8-
|ui |X11 |
9-
|language |(EN) |
10-
|collate |en_US.UTF-8 |
11-
|ctype |en_US.UTF-8 |
12-
|tz |America/New_York |
13-
|date |2020-02-12 |
3+
|field |value |
4+
|:--------|:------------------------------|
5+
|version |R version 4.2.2 (2022-10-31) |
6+
|os |macOS Ventura 13.2 |
7+
|system |aarch64, darwin20 |
8+
|ui |X11 |
9+
|language |(EN) |
10+
|collate |en_US.UTF-8 |
11+
|ctype |en_US.UTF-8 |
12+
|tz |America/New_York |
13+
|date |2023-03-14 |
14+
|pandoc |3.1 @ /opt/homebrew/bin/pandoc |
1415

1516
# Dependencies
1617

17-
|package |old |new |Δ |
18-
|:-------|:------|:------|:--|
19-
|learnr |0.10.0 |0.10.1 |* |
18+
|package |old |new |Δ |
19+
|:-----------|:---------|:---------|:--|
20+
|learnr |0.11.2 |0.11.3 |* |
21+
|backports |1.4.1 |1.4.1 | |
22+
|base64enc |0.1-3 |0.1-3 | |
23+
|bslib |0.4.2 |0.4.2 | |
24+
|cachem |1.0.7 |1.0.7 | |
25+
|checkmate |2.1.0 |2.1.0 | |
26+
|cli |3.6.0 |3.6.0 | |
27+
|commonmark |1.8.1 |1.8.1 | |
28+
|crayon |1.5.2 |1.5.2 | |
29+
|curl |5.0.0 |5.0.0 | |
30+
|digest |0.6.31 |0.6.31 | |
31+
|ellipsis |0.3.2 |0.3.2 | |
32+
|evaluate |0.20 |0.20 | |
33+
|fastmap |1.1.1 |1.1.1 | |
34+
|fontawesome |0.5.0 |0.5.0 | |
35+
|fs |1.6.1 |1.6.1 | |
36+
|glue |1.6.2 |1.6.2 | |
37+
|highr |0.10 |0.10 | |
38+
|htmltools |0.5.4 |0.5.4 | |
39+
|htmlwidgets |1.6.1 |1.6.1 | |
40+
|httpuv |1.6.9 |1.6.9 | |
41+
|jquerylib |0.1.4 |0.1.4 | |
42+
|jsonlite |1.8.4 |1.8.4 | |
43+
|knitr |1.42 |1.42 | |
44+
|later |1.3.0 |1.3.0 | |
45+
|lifecycle |1.0.3 |1.0.3 | |
46+
|magrittr |2.0.3 |2.0.3 | |
47+
|markdown |1.5 |1.5 | |
48+
|memoise |2.0.1 |2.0.1 | |
49+
|mime |0.12 |0.12 | |
50+
|promises |1.2.0.1 |1.2.0.1 | |
51+
|R6 |2.5.1 |2.5.1 | |
52+
|rappdirs |0.3.3 |0.3.3 | |
53+
|Rcpp |1.0.10 |1.0.10 | |
54+
|renv |0.17.0-40 |0.17.0-49 |* |
55+
|rlang |1.0.6 |1.0.6 | |
56+
|rmarkdown |2.20 |2.20 | |
57+
|rprojroot |2.0.3 |2.0.3 | |
58+
|sass |0.4.5 |0.4.5 | |
59+
|shiny |1.7.4 |1.7.4 | |
60+
|sourcetools |0.1.7-1 |0.1.7-1 | |
61+
|stringi |1.7.12 |1.7.12 | |
62+
|stringr |1.5.0 |1.5.0 | |
63+
|tinytex |0.44 |0.44 | |
64+
|vctrs |0.5.2 |0.5.2 | |
65+
|withr |2.5.0 |2.5.0 | |
66+
|xfun |0.37 |0.37 | |
67+
|xtable |1.8-4 |1.8-4 | |
68+
|yaml |2.3.7 |2.3.7 | |
2069

2170
# Revdeps
2271

revdep/cran.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
## revdepcheck results
2+
3+
We checked 14 reverse dependencies (13 from CRAN + 1 from Bioconductor), comparing R CMD check results across CRAN and dev versions of this package.
4+
5+
* We saw 0 new problems
6+
* We failed to check 0 packages
7+

vignettes/multilang.Rmd

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ knitr::opts_chunk$set(
2020
2121
## Language codes and names borrowed from BootBox
2222
# library(rvest)
23-
# read_html("http://bootboxjs.com/documentation.html#bb-locales") %>%
24-
# html_table() %>%
25-
# .[[6]] %>%
23+
# read_html("https://bootboxjs.com/v5.x/documentation.html") %>%
24+
# html_table() %>%
25+
# .[[6]] %>%
2626
# {dplyr::bind_rows(.[, 1:2], .[, 3:4])}
2727
2828
languages <- c("Arabic","Bulgarian","Czech",
@@ -65,7 +65,7 @@ bb_langs_code <- paste0("`", names(languages), "`")
6565

6666
To change the language of the UI element, you can use the following parameter in your YAML:
6767

68-
output:
68+
output:
6969
learnr::tutorial:
7070
language: fr
7171

@@ -209,7 +209,7 @@ language: custom_language.json
209209
Complete translations are provided by the internal function `i18n_translations()`.
210210
To contribute a complete translation for a language not currently provided by learnr, please submit a pull request to [github.com/rstudio/learnr](https://github.com/rstudio/learnr) updating the list in `data-raw/i18n_translations.yml`, following the format described in that file.
211211

212-
Note that for the language to be available inside the alert boxes of learnr, you'll need to set the language to one of the [language codes used by bootbox](http://bootboxjs.com/documentation.html#bb-locales)[^1].
212+
Note that for the language to be available inside the alert boxes of learnr, you'll need to set the language to one of the [language codes used by bootbox](https://bootboxjs.com/v5.x/documentation.html)[^1].
213213
If your language is not available for `bootbox`, then the buttons will default to English.
214214

215215
[^1]: `r knitr::combine_words(bb_langs_code, and = " or ")`

0 commit comments

Comments
 (0)