Skip to content

Commit 18cd506

Browse files
committed
Switch for {learndown} to {learnitdown} and start 2021 series
1 parent 1258594 commit 18cd506

File tree

9 files changed

+41
-35
lines changed

9 files changed

+41
-35
lines changed

DESCRIPTION

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
Package: BioDataScience3
2-
Version: 2020.6.0
2+
Version: 2021.0.0
33
Title: A Series of Learnr Documents for Biological Data Science 3
44
Description: Interactive documents using learnr for studying biological data science (second course).
55
Authors@R: c(
@@ -9,7 +9,7 @@ Authors@R: c(
99
email = "guyliann.engels@umons.ac.be"))
1010
Maintainer: Philippe Grosjean <phgrosjean@sciviews.org>
1111
Depends: R (>= 3.5.0)
12-
Imports: learndown, BioDataScience, shiny, miniUI
12+
Imports: learnitdown, BioDataScience, shiny, miniUI
1313
Suggests: SciViews, ggplot2, ggpubr, data.io, flow, chart, covr, knitr, testthat, gradethis
1414
License: MIT + file LICENSE
1515
Encoding: UTF-8

NAMESPACE

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ export(update_pkg)
99
importFrom(BioDataScience,config)
1010
importFrom(BioDataScience,sign_in)
1111
importFrom(BioDataScience,sign_out)
12-
importFrom(learndown,learndownLearnrBanner)
13-
importFrom(learndown,learndownLearnrServer)
14-
importFrom(learndown,run)
12+
importFrom(learnitdown,learnitdownLearnrBanner)
13+
importFrom(learnitdown,learnitdownLearnrServer)
14+
importFrom(learnitdown,run)
1515
importFrom(miniUI,gadgetTitleBar)
1616
importFrom(miniUI,miniContentPanel)
1717
importFrom(miniUI,miniPage)

NEWS.md

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,45 @@
11
# BioDataScience3 News
22

3+
## Change in version 2021.0.0
4+
5+
- Start of 2021 series.
6+
7+
- Switch from {learndown} to {learnitdown}.
8+
39
## Change in version 2020.6.0
410

5-
- "Tutorial" C99La_avis added to get a quick feedback from the students.
11+
- "Tutorial" C99La_avis added to get a quick feedback from the students.
612

7-
- Praise sentences in English are eliminated from result outputs of {gradethis}.
13+
- Praise sentences in English are eliminated from result outputs of {gradethis}.
814

915
## Changes in version 2020.5.2
1016

11-
- devel/ directory for learnrs and Shiny apps in development
17+
- devel/ directory for learnrs and Shiny apps in development
1218

1319
## Changes in version 2020.5.1
1420

15-
- Changes in C06La_map (version 1.1.0): `qtm(...)` is replaced by `tm_shape(...) + tm_borders()` in the exercises.
21+
- Changes in C06La_map (version 1.1.0): `qtm(...)` is replaced by `tm_shape(...) + tm_borders()` in the exercises.
1622

1723
## Changes in version 2020.5.0
1824

19-
- New tutorial C06La_map
25+
- New tutorial C06La_map
2026

2127
## Changes in version 2020.3.0
2228

23-
- New tutorials C04La_stat_slide, C04Lb_ts_create, C04Lc_ts_manip.
29+
- New tutorials C04La_stat_slide, C04Lb_ts_create, C04Lc_ts_manip.
2430

2531
## Changes in version 2020.3.0
2632

27-
- New tutorial C02La_cv.
33+
- New tutorial C02La_cv.
2834

2935
## Changes in version 2020.2.1
3036

31-
- New tutorial C01Lb_lda.
37+
- New tutorial C01Lb_lda.
3238

3339
## Changes in version 2020.1.0
3440

35-
- New tutorial C01La_confusion.
41+
- New tutorial C01La_confusion.
3642

3743
## Changes in version 2020.0.0
3844

39-
- First version, just one example learnr and one simple Shiny app for now.
45+
- First version, just one example learnr and one simple Shiny app for now.

R/BioDataScience3-package.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
#' @docType package
66
#' @name BioDataScience3-package
77
#'
8-
#' @importFrom learndown run learndownLearnrBanner learndownLearnrServer
8+
#' @importFrom learnitdown run learnitdownLearnrBanner learnitdownLearnrServer
99
#' @importFrom BioDataScience config sign_in sign_out
1010
#' @importFrom shiny dialogViewer observeEvent selectInput stopApp runGadget
1111
#' @importFrom miniUI gadgetTitleBar miniContentPanel miniPage miniTitleBarButton miniTitleBarCancelButton

R/addins.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ run_addin <- function() {
4747
}
4848

4949
# Update both BioDataScience & BioDataScience3
50-
learndown::update_pkg("BioDataScience",
50+
learnitdown::update_pkg("BioDataScience",
5151
github_repos = "BioDataScience-course/BioDataScience")
5252
update_pkg()
5353

R/learnr.R

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
#' Prepare a learnr tutorial for learndown recording
1+
#' Prepare a learnr tutorial for learnitdown recording
22
#'
3-
#' These functions add recording functionalities through the learndown approach.
3+
#' These functions add recording features through the learnitdown approach.
44

55
#' @param cap The caption of learnr R code widgets.
66
#' @param debug Do we issue debugging messages (by default, yes if the
7-
#' environment variables `LEARNDOWN_DEBUG` is not `0`).
7+
#' environment variables `LEARNITDOWN_DEBUG` is not `0`).
88
#'
99
#' @export
1010
learnr_setup <- function(cap = "Code R",
11-
debug = Sys.getenv("LEARNDOWN_DEBUG", 0) != 0) {
12-
learndown::learndownLearnrSetup(config = BioDataScience::config(),
11+
debug = Sys.getenv("LEARNITDOWN_DEBUG", 0) != 0) {
12+
learnitdown::learnitdownLearnrSetup(config = BioDataScience::config(),
1313
sign_in = BioDataScience::sign_in(), cap = cap, debug = debug)
1414
# Eliminate praise sentence in English before results
1515
options(
@@ -25,11 +25,11 @@ debug = Sys.getenv("LEARNDOWN_DEBUG", 0) != 0) {
2525
#' @param simple Do we use a simple banner without title or not?
2626
learnr_banner <- function(simple = FALSE) {
2727
if (isTRUE(simple)) {
28-
learndownLearnrBanner(
28+
learnitdownLearnrBanner(
2929
msg.nologin = 'Utilisateur anonyme, aucun enregistrement !',
3030
msg.login = 'Enregistrement actif pour ')
3131
} else {
32-
learndownLearnrBanner(
32+
learnitdownLearnrBanner(
3333
title = "Science des donn\u00e9es biologiques\ III",
3434
text = "R\u00e9alis\u00e9 par le service d'\u00c9cologie num\u00e9rique, Universit\u00e9 de Mons (Belgique)",
3535
image = "https://wp.sciviews.org/BioDataScience-96.png",
@@ -45,4 +45,4 @@ learnr_banner <- function(simple = FALSE) {
4545
#' @param output The Shiny output.
4646
#' @param session The Shiny session.
4747
learnr_server <- function(input, output, session)
48-
learndownLearnrServer(input, output, session)
48+
learnitdownLearnrServer(input, output, session)

R/run.R

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
run <- function(tutorial, ..., update = ask, ask = interactive()) {
3535
if (missing(tutorial))
3636
tutorial <- NULL
37-
learndown::run(tutorial = tutorial, package = "BioDataScience3",
37+
learnitdown::run(tutorial = tutorial, package = "BioDataScience3",
3838
github_repos = "BioDataScience-course/BioDataScience3",
3939
..., update = update, ask = ask)
4040
}
@@ -45,13 +45,13 @@ run_app <- function(app, ..., update = ask, ask = interactive(),
4545
in.job = TRUE) {
4646
if (missing(app))
4747
app <- NULL
48-
learndown::run_app(app = app, package = "BioDataScience3",
48+
learnitdown::run_app(app = app, package = "BioDataScience3",
4949
github_repos = "BioDataScience-course/BioDataScience3",
5050
..., update = update, ask = ask, in.job = in.job)
5151
}
5252

5353
#' @rdname run
5454
#' @export
5555
update_pkg <- function()
56-
learndown::update_pkg(package = "BioDataScience3",
56+
learnitdown::update_pkg(package = "BioDataScience3",
5757
github_repos = "BioDataScience-course/BioDataScience3")

inst/shiny/C00Sa_histogram/app.R

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
# Histogram with variable classes
2-
learndown::learndownShinyVersion("1.0.0")
2+
learnitdown::learnitdownShinyVersion("1.0.0")
33
conf <- BioDataScience::config()
44

55
library(shiny)
6-
library(learndown)
6+
library(learnitdown)
77
library(BioDataScience3)
88
library(ggplot2)
99
library(chart)
1010

1111
geyser <- data.io::read("geyser", package = "MASS", lang = "fr")
1212

1313
ui <- fluidPage(
14-
learndownShiny("Choix des classes pour un histogramme"),
14+
learnitdownShiny("Choix des classes pour un histogramme"),
1515

1616
sidebarPanel(
1717
sliderInput(inputId = "bins", label = "Nombre de classes :",

man/learnr_setup.Rd

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)