diff --git a/DESCRIPTION b/DESCRIPTION index baed3eb42..80fcb070c 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,7 +1,7 @@ Type: Package Package: learnr Title: Interactive Tutorials for R -Version: 0.11.5.9000 +Version: 0.11.6 Authors@R: c( person("Garrick", "Aden-Buie", , "garrick@posit.co", role = c("aut", "cre"), comment = c(ORCID = "0000-0002-7111-0077")), @@ -73,5 +73,5 @@ Config/Needs/coverage: covr Config/Needs/website: pkgdown, tidyverse/tidytemplate Encoding: UTF-8 Roxygen: list(markdown = TRUE) -RoxygenNote: 7.3.2 +RoxygenNote: 7.3.3 SystemRequirements: pandoc (>= 1.14) - http://pandoc.org diff --git a/NEWS.md b/NEWS.md index 4dcf14de8..8fff095a1 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,6 +1,6 @@ -# learnr (development version) +# learnr 0.11.6 -- Fixed a test that was failing on CRAN's Fedora gcc environment. (#827) +- Fixed a test that was failing on CRAN's Fedora gcc environment. (#827) - Added a new option, `tutorial.exercise.throttle`, to slow down successive exercise execution. This option should be set to the number of seconds a user will have to wait between performing code executions. The option defaults to 1 second to deter rapid code executions. To disable submission throttling, call `options(tutorial.exercise.throttle = 0)` within your setup chunk. (@internaut, #818) diff --git a/R/available_tutorials.R b/R/available_tutorials.R index cf2257649..50f8ec08e 100644 --- a/R/available_tutorials.R +++ b/R/available_tutorials.R @@ -36,11 +36,11 @@ available_tutorials <- function(package = NULL) { #' `tutorials` is a \code{data.frame} containing #' "package": name of package; string #' "name": Tutorial directory. (can be passed in as `run_tutorial(NAME, PKG)`; string -#' "title": Tutorial title from yaml header; [NA] -#' "description": Tutorial description from yaml header; [NA] -#' "package_dependencies": Packages needed to run tutorial; [lsit()] -#' "private": Boolean describing if tutorial should be indexed / displayed; [FALSE] -#' "yaml_front_matter": list column of all yaml header info; [list()] +#' "title": Tutorial title from yaml header; [`NA`] +#' "description": Tutorial description from yaml header; [`NA`] +#' "package_dependencies": Packages needed to run tutorial; [`list()`] +#' "private": Boolean describing if tutorial should be indexed / displayed; [`FALSE`] +#' "yaml_front_matter": list column of all yaml header info; [`list()`] #' @noRd available_tutorials_for_package <- function(package) { an_error <- function(...) { diff --git a/README.md b/README.md index 5d001800c..8e0b47c07 100644 --- a/README.md +++ b/README.md @@ -6,15 +6,11 @@ status](https://github.com/rstudio/learnr/workflows/R-CMD-check/badge.svg)](https://github.com/rstudio/learnr) [![CRAN status](https://www.r-pkg.org/badges/version/learnr)](https://CRAN.R-project.org/package=learnr) -[![learnr downloads per -month](http://cranlogs.r-pkg.org/badges/learnr)](http://www.rpackages.io/package/learnr) [![DOI](https://zenodo.org/badge/71377580.svg)](https://zenodo.org/badge/latestdoi/71377580)
[![GitHub Discussions](https://img.shields.io/github/discussions/rstudio/learnr?logo=github&style=social)](https://github.com/rstudio/learnr/discussions) -[![RStudio -community](https://img.shields.io/badge/community-teaching-blue?style=social&logo=rstudio&logoColor=75AADB)](https://community.rstudio.com/c/teaching/13) -[![RStudio -community](https://img.shields.io/badge/community-learnr-blue?style=social&logo=rstudio&logoColor=75AADB)](https://community.rstudio.com/new-topic?title=&category_id=13&tags=learnr&body=%0A%0A%0A%20%20--------%0A%20%20%0A%20%20%3Csup%3EReferred%20here%20by%20%60learnr%60%27s%20GitHub%3C/sup%3E%0A&u=barret) +[![Posit +community](https://img.shields.io/badge/community-learnr-blue?style=social&logo=posit&logoColor=447099)](https://forum.posit.co/latest?tags=learnr) The **learnr** package makes it easy to turn any [R diff --git a/cran-comments.md b/cran-comments.md index 68a3bdb7c..0037a2f6b 100644 --- a/cran-comments.md +++ b/cran-comments.md @@ -1,12 +1,3 @@ -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"`. - ## R CMD check results 0 errors | 0 warnings | 0 notes - -## revdepcheck results - -We checked 20 reverse dependencies (19 from CRAN + 1 from Bioconductor), comparing R CMD check results across CRAN and dev versions of this package. - - * We saw 0 new problems - * We failed to check 0 packages diff --git a/man/mock_exercise.Rd b/man/mock_exercise.Rd index 18d0d2018..6e982a69e 100644 --- a/man/mock_exercise.Rd +++ b/man/mock_exercise.Rd @@ -87,7 +87,7 @@ having to create a learnr tutorial. }} \examples{ -\dontshow{if (identical(Sys.getenv("IN_PKGDOWN"), "true")) (if (getRversion() >= "3.4") withAutoprint else force)(\{ # examplesIf} +\dontshow{if (identical(Sys.getenv("IN_PKGDOWN"), "true")) withAutoprint(\{ # examplesIf} mock_exercise( user_code = "1 + 1", solution_code = "2 + 2", diff --git a/man/rmd-fragments/badges.Rmd b/man/rmd-fragments/badges.Rmd index adf50ad12..de6871b38 100644 --- a/man/rmd-fragments/badges.Rmd +++ b/man/rmd-fragments/badges.Rmd @@ -1,10 +1,8 @@ [![R build status](https://github.com/rstudio/learnr/workflows/R-CMD-check/badge.svg)](https://github.com/rstudio/learnr) [![CRAN status](https://www.r-pkg.org/badges/version/learnr)](https://CRAN.R-project.org/package=learnr) -[![learnr downloads per month](http://cranlogs.r-pkg.org/badges/learnr)](http://www.rpackages.io/package/learnr) [![DOI](https://zenodo.org/badge/71377580.svg)](https://zenodo.org/badge/latestdoi/71377580) -
+
[![GitHub Discussions](https://img.shields.io/github/discussions/rstudio/learnr?logo=github&style=social)](https://github.com/rstudio/learnr/discussions) -[![RStudio community](https://img.shields.io/badge/community-teaching-blue?style=social&logo=rstudio&logoColor=75AADB)]( https://community.rstudio.com/c/teaching/13) -[![RStudio community](https://img.shields.io/badge/community-learnr-blue?style=social&logo=rstudio&logoColor=75AADB)](https://community.rstudio.com/new-topic?title=&category_id=13&tags=learnr&body=%0A%0A%0A%20%20--------%0A%20%20%0A%20%20%3Csup%3EReferred%20here%20by%20%60learnr%60%27s%20GitHub%3C/sup%3E%0A&u=barret) +[![Posit community](https://img.shields.io/badge/community-learnr-blue?style=social&logo=posit&logoColor=447099)](https://forum.posit.co/latest?tags=learnr) diff --git a/man/tutorial.Rd b/man/tutorial.Rd index b97def5ca..b0c9cedb1 100644 --- a/man/tutorial.Rd +++ b/man/tutorial.Rd @@ -89,7 +89,7 @@ copied into the output directory). You can pass an alternate URL or pass \item{extra_dependencies}{Extra dependencies as a list of the \code{html_dependency} class objects typically generated by -\code{\link[htmltools:htmlDependency]{htmltools:htmlDependency()}}.} +\code{\link[htmltools:htmlDependency]{htmltools::htmlDependency()}}.} \item{css}{CSS and/or Sass files to include. Files with an extension of .sass or .scss are compiled to CSS via \code{sass::sass()}. Also, if \code{theme} is a @@ -111,7 +111,7 @@ available options and formatting} \item{lib_dir}{Directory to copy dependent HTML libraries (e.g. jquery, bootstrap, etc.) into. By default this will be the name of the document with -\code{_files} appended to it.} +\verb{_files} appended to it.} \item{...}{Forward parameters to html_document} }