Skip to content

Commit ef3c33a

Browse files
committed
Version 2022-2023
1 parent e25dedd commit ef3c33a

File tree

3 files changed

+20
-6
lines changed

3 files changed

+20
-6
lines changed

DESCRIPTION

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
Package: BioDataScience3
2-
Version: 2021.0.1
2+
Version: 2022.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(
@@ -8,14 +8,14 @@ Authors@R: c(
88
person("Guyliann", "Engels", role = "aut",
99
email = "guyliann.engels@umons.ac.be"))
1010
Maintainer: Philippe Grosjean <phgrosjean@sciviews.org>
11-
Depends: R (>= 3.5.0)
11+
Depends: R (>= 4.1.0)
1212
Imports: learnitdown, BioDataScience, shiny, miniUI
13-
Suggests: SciViews, ggplot2, ggpubr, data.io, flow, chart, covr, knitr, testthat, gradethis
13+
Suggests: SciViews, ggplot2, ggpubr, data.io, svMisc, svBase, svFlow, chart, covr, knitr, testthat, gradethis
1414
License: MIT + file LICENSE
1515
Encoding: UTF-8
1616
LazyData: true
1717
URL: https://github.com/BioDataScience-Course/BioDataScience3
1818
BugReports: https://github.com/BioDataScience-Course/BioDataScience3/issues
1919
Roxygen: list(markdown = TRUE)
20-
RoxygenNote: 7.1.1
20+
RoxygenNote: 7.1.2
2121
VignetteBuilder: knitr

NEWS.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
11
# BioDataScience3 News
22

3+
## Change in version 2022.0.1
4+
5+
- New version for academic year 2022-2023.
6+
37
## Change in version 2021.0.1
48

5-
- Updated wine challenge (C03Sa_challenge -> C03Ca_ml_wine).
9+
- Updated wine challenge (C03Sa_challenge -\> C03Ca_ml_wine).
610

711
## Change in version 2021.0.0
812

inst/shiny/C03Ca_ml_wine/app.R

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,14 +170,22 @@ server <- function(input, output) {
170170
if (!is.null(file$datapath) && grepl("^.+__.+\\.rds", file$name) &&
171171
!is_done()) {
172172
solution <- data.io::read$rds(file$datapath)$value
173+
message("data read")
173174
score <- score_model(solution)
175+
message("score is ", score)
174176
name <- file$name
177+
message("name is ", name)
175178
project <- sub("(^.+)__.+$", "\\1", name)
176179
model <- sub(("^.+__(.+)\\.rds$"), "\\1", name)
180+
if (project == name) {
181+
message("Wrong name!")
182+
score <- NA
183+
}
177184
} else {
178185
score <- NA
179186
}
180187
ranking <- load_data()
188+
message("Data loaded")
181189
# Record an entry in the mongoDB database
182190
# But we need the login of *all* members of the team, and we don't have them
183191
# right now => leave this to a post-process task instead!
@@ -198,6 +206,7 @@ server <- function(input, output) {
198206
ranking$date <- as.POSIXct(ranking$date, origin = "1960-01-01")
199207
ranking$date <- format(ranking$date, "%Y-%m-%d %H:%M:%S")
200208
}
209+
message("Date reworked")
201210
# Add a column with medals for the three first results
202211
n <- NROW(ranking)
203212
if (n == 0) {
@@ -207,10 +216,11 @@ server <- function(input, output) {
207216
if (n < 4) {
208217
medals <- medals[1:n]
209218
} else {
210-
medals <- c(medals, rep("", 1:(n - 3)))
219+
medals <- c(medals, rep("", n - 3))
211220
}
212221
}
213222
ranking <- data.frame(rank = medals, ranking)
223+
message("Ranking done")
214224
names(ranking) <- c("", "Projet", "Mod\u00e8le", "Date", "Score")
215225
ranking
216226
})

0 commit comments

Comments
 (0)