File tree Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Original file line number Diff line number Diff line change 2
2
3
3
- New version for academic year 2023-2024.
4
4
5
+ - The addin to select learnrs or Shiny apps now detects inactivated items and takes them out of the list.
6
+
5
7
# BioDataScience3 2022.4.1
6
8
7
9
- Corrections in ** C06La_map** .
Original file line number Diff line number Diff line change @@ -9,9 +9,20 @@ run_addin <- function() {
9
9
10
10
items <- character (0 )
11
11
tutorials <- dir(system.file(" tutorials" , package = package ))
12
+ is_active <- function (dir , subdir , pattern )
13
+ length(dir(system.file(dir , subdir , package = package ),
14
+ pattern = pattern )) > 0
15
+ keep <- logical (length(tutorials ))
16
+ for (i in seq_along(tutorials ))
17
+ keep [i ] <- is_active(" tutorials" , tutorials [i ], " \\ .Rmd$" )
18
+ tutorials <- tutorials [keep ]
12
19
if (length(tutorials ))
13
20
items <- paste(tutorials , " (tutorial)" )
14
21
apps <- dir(system.file(" shiny" , package = package ))
22
+ keep <- logical (length(apps ))
23
+ for (i in seq_along(apps ))
24
+ keep [i ] <- is_active(" shiny" , apps [i ], " ^app.R$" )
25
+ apps <- apps [keep ]
15
26
if (length(apps ))
16
27
items <- c(items , paste(apps , " (Shiny app)" ))
17
28
if (! length(items )) return ()
You can’t perform that action at this time.
0 commit comments