Skip to content

Commit dc0c298

Browse files
authored
Merge pull request #3 from Programming-The-Next-Step-2026/week-3
Add Shiny app, tests, vignette, and CI
2 parents 24555bd + 1d8fe74 commit dc0c298

23 files changed

Lines changed: 497 additions & 307 deletions

.Rbuildignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
^.*\.Rproj$
2+
^\.Rproj\.user$
3+
^\.github$

.github/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
*.html

.github/workflows/R-CMD-check.yaml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# Workflow derived from https://github.com/r-lib/actions/tree/v2/examples
2+
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help
3+
on:
4+
push:
5+
pull_request:
6+
7+
name: R-CMD-check.yaml
8+
9+
permissions: read-all
10+
11+
jobs:
12+
R-CMD-check:
13+
runs-on: ubuntu-latest
14+
env:
15+
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
16+
R_KEEP_PKG_SOURCE: yes
17+
steps:
18+
- uses: actions/checkout@v6
19+
20+
- uses: r-lib/actions/setup-r@v2
21+
22+
- uses: r-lib/actions/setup-r-dependencies@v2
23+
with:
24+
extra-packages: any::rcmdcheck
25+
needs: check
26+
27+
- uses: r-lib/actions/check-r-package@v2
28+
with:
29+
upload-snapshots: true
30+
build_args: 'c("--no-manual","--compact-vignettes=gs+qpdf")'

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
.Rproj.user
2+
.Rhistory
3+
.RData
4+
.Ruserdata
5+
inst/doc

DESCRIPTION

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,12 @@ Encoding: UTF-8
1919
LazyData: true
2020
RoxygenNote: 7.3.3
2121
Imports:
22-
checkmate (>= 2.3.4)
22+
checkmate (>= 2.3.4),
23+
shiny (>= 1.13.0)
2324
Suggests:
25+
knitr,
26+
rmarkdown,
27+
shinytest2,
2428
testthat (>= 3.0.0)
2529
Config/testthat/edition: 3
30+
VignetteBuilder: knitr

NAMESPACE

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# Generated by roxygen2: do not edit by hand
22

3-
export(create_manual_sequence)
43
export(generate_sequence)
54
export(get_card_states)
6-
export(get_current_number)
75
export(is_winner)
86
export(run_app)
7+
export(validate_manual_sequence)
8+
import(shiny)
99
importFrom(checkmate,assert_numeric)

0 commit comments

Comments
 (0)