Skip to content

Commit 8f67a7e

Browse files
committed
Move from {learndown} to {learnitdown} and start 2021 series
1 parent 83db434 commit 8f67a7e

File tree

16 files changed

+88
-86
lines changed

16 files changed

+88
-86
lines changed

DESCRIPTION

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
Package: BioDataScience2
2-
Version: 2020.9.0
2+
Version: 2021.0.0
33
Title: A Series of Learnr Documents for Biological Data Science 2
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: 42 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -1,139 +1,141 @@
11
# BioDataScience2 News
22

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

5-
- A new tutorial B08La_mfa is added.
11+
- A new tutorial B08La_mfa is added.
612

713
## Changes in version 2020.8.2
814

9-
- In the B07La_pca tutorial, chart$<type>() does not work properly in specific cases. A work-around is introduced.
15+
- In the B07La_pca tutorial, chart\$<type>() does not work properly in specific cases. A work-around is introduced.
1016

1117
## Changes in version 2020.8.1
1218

13-
- In the B07La_pca tutorial, chart$<type>() does not work properly in specific cases. This is an attempt to fix it.
19+
- In the B07La_pca tutorial, chart\$<type>() does not work properly in specific cases. This is an attempt to fix it.
1420

1521
## Changes in version 2020.8.0
1622

17-
- New tutorial B07La_pca in version 2.
23+
- New tutorial B07La_pca in version 2.
1824

19-
- Praise sentences in English are eliminated from result outputs of {gradethis}.
25+
- Praise sentences in English are eliminated from result outputs of {gradethis}.
2026

2127
## Changes in version 2020.7.0
2228

23-
- Tutorial B06Lc_som migrated to version 2.
29+
- Tutorial B06Lc_som migrated to version 2.
2430

2531
## Changes in version 2020.6.0
2632

27-
- Tutorial B06Lb_mds migrated to version 2.
33+
- Tutorial B06Lb_mds migrated to version 2.
2834

2935
## Changes in version 2020.5.0
3036

31-
- Tutorial B06La_kmeans migrated to version 2.
37+
- Tutorial B06La_kmeans migrated to version 2.
3238

3339
## Changes in version 2020.4.1
3440

35-
- A bug in learnr that cannot run chart$horizontal() in B05La_cah is eliminated.
41+
- A bug in learnr that cannot run chart\$horizontal() in B05La_cah is eliminated.
3642

3743
## Changes in version 2020.4.0
3844

39-
- "Tutorial" B99La_avis added to get a quick feedback from the students.
45+
- "Tutorial" B99La_avis added to get a quick feedback from the students.
4046

41-
- Tutorial B05La_cah finalized
47+
- Tutorial B05La_cah finalized
4248

4349
## Changes in version 2020.3.1
4450

45-
- Tutorials that are not in final stage are now placed in the devel/ directory.
51+
- Tutorials that are not in final stage are now placed in the devel/ directory.
4652

4753
## Changes in version 2020.3.0
4854

49-
- New tutorial B04La
55+
- New tutorial B04La
5056

51-
- New shinyapps B04Sa, B04Sb, B04Sc, B04Sd, B04Se, B04Sf
57+
- New shinyapps B04Sa, B04Sb, B04Sc, B04Sd, B04Se, B04Sf
5258

5359
## Changes in version 2020.2.4
5460

55-
- Minor change in B03La_mod_lin
61+
- Minor change in B03La_mod_lin
5662

5763
## Changes in version 2020.2.3
5864

59-
- Update B03La_mod_lin
65+
- Update B03La_mod_lin
6066

6167
## Changes in version 2020.2.2
6268

63-
- Minor change in B02la_reg_multi
69+
- Minor change in B02la_reg_multi
6470

6571
## Changes in version 2020.2.1
6672

67-
- Minor change in B02lB_reg_poly
73+
- Minor change in B02lB_reg_poly
6874

6975
## Changes in version 2020.2.0
7076

71-
- Update B02La_reg_multi and B02Lb_reg_poly
77+
- Update B02La_reg_multi and B02Lb_reg_poly
7278

7379
## changes in version 2020.1.1
7480

75-
- Update all tutorials with SciViews Box 2020 and BioDatascience packages
81+
- Update all tutorials with SciViews Box 2020 and BioDatascience packages
7682

7783
## Changes in version 2020.1.0
7884

79-
- Update B01La_rappel and B01Lb_reglin1 for better interaction with gradethis package.
85+
- Update B01La_rappel and B01Lb_reglin1 for better interaction with gradethis package.
8086

8187
## Changes in version 2020.0.0
8288

83-
- Update all tutorials with SciViews Box 2020, and name change with B01Xa_name,
84-
with 'B' refers to second course, '01' to first module, 'X' being `L` for learnr
85-
or `S` for Shiny and 'a' the sequence in case there are several similar items in
86-
the same module.
89+
- Update all tutorials with SciViews Box 2020, and name change with B01Xa_name, with 'B' refers to second course, '01' to first module, 'X' being `L` for learnr or `S` for Shiny and 'a' the sequence in case there are several similar items in the same module.
8790

88-
- RStudio addins.
91+
- RStudio addins.
8992

9093
## Changes in version 2019.11.0
9194

92-
- Tutorial 06b_mds
95+
- Tutorial 06b_mds
9396

94-
- Tutorial 06c_som
97+
- Tutorial 06c_som
9598

9699
## Changes in version 2019.11.0
97100

98-
- Tutorial 06a_kmeans
101+
- Tutorial 06a_kmeans
99102

100103
## Changes in version 2019.10.0
101104

102-
- Tutorial 05a_distance_matrix
105+
- Tutorial 05a_distance_matrix
103106

104107
## Changes in version 2019.9.0
105108

106-
- New Shiny app 04e_gompertz
109+
- New Shiny app 04e_gompertz
107110

108111
## Changes in version 2019.8.0
109112

110-
- Shiny app 04c 04d
113+
- Shiny app 04c 04d
111114

112115
## Changes in version 2019.7.0
113116

114-
- Shiny app 04a_michaelis_menten and 04b_exponent
117+
- Shiny app 04a_michaelis_menten and 04b_exponent
115118

116119
## Changes in version 2019.6.0
117120

118-
- Tutorial 03a_mod_lin finalized
121+
- Tutorial 03a_mod_lin finalized
119122

120123
## Changes in version 2019.5.0
121124

122-
- Tutorial 02a_reg_multi finalized
125+
- Tutorial 02a_reg_multi finalized
123126

124127
## Changes in version 2019.4.0
125128

126-
- Tutorial 02b_reg_poly finalized
129+
- Tutorial 02b_reg_poly finalized
127130

128131
## Changes in version 2019.3.0
129132

130-
- Tutorial 01b_reg_lin : minor correction
133+
- Tutorial 01b_reg_lin : minor correction
131134

132135
## Changes in version 2019.2.0
133136

134-
- Tutorial 01b_reg_lin finalized
137+
- Tutorial 01b_reg_lin finalized
135138

136139
## Changes in version 2019.1.0
137140

138-
- Tutorial 01a_rappel finalized
139-
141+
- Tutorial 01a_rappel finalized

R/BioDataScience2-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 BioDataScience2-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 & BioDataScience2
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 @@ learnr_setup <- function(cap = "Code R",
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\ II",
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 = "BioDataScience2",
37+
learnitdown::run(tutorial = tutorial, package = "BioDataScience2",
3838
github_repos = "BioDataScience-course/BioDataScience2",
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 = "BioDataScience2",
48+
learnitdown::run_app(app = app, package = "BioDataScience2",
4949
github_repos = "BioDataScience-course/BioDataScience2",
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 = "BioDataScience2",
56+
learnitdown::update_pkg(package = "BioDataScience2",
5757
github_repos = "BioDataScience-course/BioDataScience2")

devel/shiny/B05Sa_cluster/app.R

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
learndown::learndownShinyVersion("0.1.0")
1+
learnitdown::learnitdownShinyVersion("0.1.0")
22
conf <- BioDataScience::config()
33

44
library(shiny)
55
library(shinyjs)
6-
library(learndown)
6+
library(learnitdown)
77
library(BioDataScience2)
88
library(dplyr)
99
library(tidyr)
@@ -396,7 +396,7 @@ score_cah <- function(x, reference = peng_m$species) {
396396

397397
ui <- fluidPage(
398398
useShinyjs(),
399-
learndownShiny("Classification hiérarchique ascendante sur des mesures de manchots d'antarctique."),
399+
learnitdownShiny("Classification hiérarchique ascendante sur des mesures de manchots d'antarctique."),
400400

401401
sidebarLayout(
402402
sidebarPanel(

inst/shiny/B01Sa_reglin/app.R

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
learndown::learndownShinyVersion("1.0.0")
1+
learnitdown::learnitdownShinyVersion("1.0.0")
22
conf <- BioDataScience::config()
33

44
library(shiny)
5-
library(learndown)
5+
library(learnitdown)
66
library(BioDataScience2)
77

88
a_init <- -1.5
@@ -19,7 +19,7 @@ model_data <- tibble::tibble(
1919
rnorm(n = length(x), sd = error_sd))
2020

2121
ui <- fluidPage(
22-
learndownShiny("Ajustement manuel d'un modèle : régression linéaire"),
22+
learnitdownShiny("Ajustement manuel d'un modèle : régression linéaire"),
2323

2424
sidebarLayout(
2525
sidebarPanel(

inst/shiny/B04Sa_micmen/app.R

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
learndown::learndownShinyVersion("1.1.0")
1+
learnitdown::learnitdownShinyVersion("1.1.0")
22
conf <- BioDataScience::config()
33

44
library(shiny)
5-
library(learndown)
5+
library(learnitdown)
66
library(BioDataScience2)
77

88
vm_init <- 6
@@ -21,7 +21,7 @@ graph <- chart::chart(model_data, y ~ x) +
2121
ggplot2::ylab("y")
2222

2323
ui <- fluidPage(
24-
learndownShiny("Ajustement manuel d'un modèle : Michaelis-Menten"),
24+
learnitdownShiny("Ajustement manuel d'un modèle : Michaelis-Menten"),
2525

2626
sidebarLayout(
2727
sidebarPanel(

0 commit comments

Comments
 (0)