Skip to content

Commit d966d45

Browse files
committed
chore(lint/re-run): lint and re-run rmd
1 parent 4f17eab commit d966d45

File tree

12 files changed

+41
-34
lines changed

12 files changed

+41
-34
lines changed

DESCRIPTION

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,5 +36,6 @@ Suggests:
3636
lintr,
3737
devtools,
3838
xtable,
39-
data.table
39+
data.table,
40+
mockery
4041
Config/testthat/edition: 3

outputs/cores1.png

-8.14 KB
Loading

outputs/cores2.png

-2.48 KB
Loading

rmarkdown/analysis.Rmd

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -413,7 +413,10 @@ These patients will be ignored in calculation of metrics like mean time with nur
413413

414414
```{r}
415415
nan_experiment <- runner(parameters(patient_inter = 0.5))
416-
tail(nan_experiment[["arrivals"]])
416+
417+
nan_experiment[["arrivals"]] %>%
418+
arrange(replication, start_time) %>%
419+
tail()
417420
```
418421

419422
```{r}

rmarkdown/analysis.md

Lines changed: 20 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Analysis
22
================
33
Amy Heather
4-
2025-03-17
4+
2025-03-18
55

66
- [Set up](#set-up)
77
- [Default run](#default-run)
@@ -391,7 +391,7 @@ print(table_latex)
391391
```
392392

393393
## % latex table generated in R 4.4.1 by xtable 1.8-4 package
394-
## % Mon Mar 17 15:49:56 2025
394+
## % Tue Mar 18 11:22:35 2025
395395
## \begin{table}[ht]
396396
## \centering
397397
## \begin{tabular}{rrllll}
@@ -647,7 +647,7 @@ print(sensitivity_table_latex)
647647
```
648648

649649
## % latex table generated in R 4.4.1 by xtable 1.8-4 package
650-
## % Mon Mar 17 15:50:37 2025
650+
## % Tue Mar 18 11:23:15 2025
651651
## \begin{table}[ht]
652652
## \centering
653653
## \begin{tabular}{rrl}
@@ -690,23 +690,26 @@ end of the simulation reveals large backlogs in the system.
690690

691691
``` r
692692
nan_experiment <- runner(parameters(patient_inter = 0.5))
693-
tail(nan_experiment[["arrivals"]])
693+
694+
nan_experiment[["arrivals"]] %>%
695+
arrange(replication, start_time) %>%
696+
tail()
694697
```
695698

696699
## name start_time end_time activity_time resource replication
697-
## 16136 patient78 38.80769 NA NA nurse 100
698-
## 16137 patient74 37.63360 NA NA nurse 100
699-
## 16138 patient76 38.71731 NA NA nurse 100
700-
## 16139 patient134 64.35663 NA NA nurse 100
701-
## 16140 patient73 36.35539 NA NA nurse 100
702-
## 16141 patient77 38.74436 NA NA nurse 100
700+
## 16136 patient153 75.03500 NA NA nurse 100
701+
## 16137 patient154 75.42285 NA NA nurse 100
702+
## 16138 patient155 77.16121 NA NA nurse 100
703+
## 16139 patient156 77.55231 NA NA nurse 100
704+
## 16140 patient157 78.98730 NA NA nurse 100
705+
## 16141 patient158 79.84263 NA NA nurse 100
703706
## serve_start serve_length wait_time wait_time_unseen
704-
## 16136 NA NA NA 41.19231
705-
## 16137 NA NA NA 42.36640
706-
## 16138 NA NA NA 41.28269
707-
## 16139 NA NA NA 15.64337
708-
## 16140 NA NA NA 43.64461
709-
## 16141 NA NA NA 41.25564
707+
## 16136 NA NA NA 4.9649970
708+
## 16137 NA NA NA 4.5771491
709+
## 16138 NA NA NA 2.8387887
710+
## 16139 NA NA NA 2.4476942
711+
## 16140 NA NA NA 1.0126951
712+
## 16141 NA NA NA 0.1573668
710713

711714
``` r
712715
nan_experiment[["run_results"]][c(
@@ -764,4 +767,4 @@ seconds <- as.integer(runtime %% 60L)
764767
cat(sprintf("Notebook run time: %dm %ds", minutes, seconds))
765768
```
766769

767-
## Notebook run time: 2m 19s
770+
## Notebook run time: 2m 2s

rmarkdown/choosing_cores.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Choosing cores
22
================
33
Amy Heather
4-
2025-03-17
4+
2025-03-18
55

66
- [Set up](#set-up)
77
- [Run time with varying number of CPU
@@ -32,7 +32,7 @@ devtools::install()
3232
```
3333

3434
##
35-
## ── R CMD build ───────────────────────────────────────────────────────────────────────────────
35+
## ── R CMD build ─────────────────────────────────────────────────
3636
## checking for file ‘/home/amy/Documents/stars/rap_template_r_des/DESCRIPTION’ ... ✔ checking for file ‘/home/amy/Documents/stars/rap_template_r_des/DESCRIPTION’
3737
## ─ preparing ‘simulation’:
3838
## checking DESCRIPTION meta-information ... ✔ checking DESCRIPTION meta-information
@@ -42,7 +42,7 @@ devtools::install()
4242
## ─ building ‘simulation_0.1.0.tar.gz’
4343
##
4444
## Running /opt/R/4.4.1/lib/R/bin/R CMD INSTALL \
45-
## /tmp/RtmpJhKlRH/simulation_0.1.0.tar.gz --install-tests
45+
## /tmp/Rtmp2ijted/simulation_0.1.0.tar.gz --install-tests
4646
## * installing to library ‘/home/amy/.cache/R/renv/library/rap_template_r_des-cd7d6844/linux-ubuntu-noble/R-4.4/x86_64-pc-linux-gnu’
4747
## * installing *source* package ‘simulation’ ...
4848
## ** using staged installation
@@ -216,4 +216,4 @@ seconds <- as.integer(runtime %% 60L)
216216
cat(sprintf("Notebook run time: %dm %ds", minutes, seconds))
217217
```
218218

219-
## Notebook run time: 2m 22s
219+
## Notebook run time: 2m 14s

rmarkdown/choosing_replications.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -574,4 +574,4 @@ seconds <- as.integer(runtime %% 60L)
574574
cat(sprintf("Notebook run time: %dm %ds", minutes, seconds))
575575
```
576576

577-
## Notebook run time: 1m 31s
577+
## Notebook run time: 1m 29s

rmarkdown/choosing_warmup.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Choosing warm-up length
22
================
33
Amy Heather
4-
2025-03-17
4+
2025-03-18
55

66
- [Set-up](#set-up)
77
- [Determining appropriate warm-up

rmarkdown/generate_exp_results.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Generate expected results
22
================
33
Amy Heather
4-
2025-03-17
4+
2025-03-18
55

66
- [Set-up](#set-up)
77
- [Base case](#base-case)

rmarkdown/logs.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Logs
22
================
33
Amy Heather
4-
2025-03-17
4+
2025-03-18
55

66
- [Set up](#set-up)
77
- [Simulation run with logs printed to the

0 commit comments

Comments
 (0)