Skip to content

Commit e0c8037

Browse files
authored
Merge pull request #4 from Programming-The-Next-Step-2026/week-3
Week 3
2 parents 9d729df + b09702f commit e0c8037

44 files changed

Lines changed: 2648 additions & 160 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.DS_Store

2 KB
Binary file not shown.

.Rhistory

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
AssumptionPlotter::simulate_logistic()

.github/workflows/github-actions-demo.yml

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: GitHub Unit Testing
2+
run-name: ${{ github.actor }} is checking her unit tests
3+
4+
on:
5+
push:
6+
pull_request:
7+
8+
jobs:
9+
run-unit-tests:
10+
runs-on: ubuntu-latest
11+
12+
defaults:
13+
run:
14+
working-directory: AssumptionPlotter
15+
16+
steps:
17+
- name: Checkout repository
18+
uses: actions/checkout@v4
19+
20+
- name: Set up R
21+
uses: r-lib/actions/setup-r@v2
22+
23+
- name: Install dependencies
24+
uses: r-lib/actions/setup-r-dependencies@v2
25+
with:
26+
working-directory: AssumptionPlotter
27+
extra-packages: any::testthat, any::devtools
28+
29+
- name: Run unit tests
30+
run: Rscript -e 'devtools::test()'
31+
32+
33+
34+
35+

.gitignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,10 @@ AssumptionPlotter/.Rproj.user
22

33
AssumptionPlotter/.Rhistory
44
.Rproj.user
5+
6+
AssumptionPlotter/.DS_Store
7+
.DS_Store
8+
.DS_Store
9+
10+
AssumptionPlotter/.github
11+
AssumptionPlotter/.github/workflows

Assumption-Plotter.Rproj

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
Version: 1.0
2+
3+
RestoreWorkspace: Default
4+
SaveWorkspace: Default
5+
AlwaysSaveHistory: Default
6+
7+
EnableCodeIndexing: Yes
8+
UseSpacesForTab: Yes
9+
NumSpacesForTab: 2
10+
Encoding: UTF-8
11+
12+
RnwWeave: Sweave
13+
LaTeX: pdfLaTeX
14+
15+
AutoAppendNewline: Yes
16+
StripTrailingWhitespace: Yes

AssumptionPlotter/.Rbuildignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,6 @@
11
^.*\.Rproj$
22
^\.Rproj\.user$
3+
^vignettes/\.quarto$
4+
^vignettes/*_files$
5+
^\.github$
6+
^README\.Rmd$
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
*.html
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
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+
branches: [main, master]
6+
pull_request:
7+
8+
name: R-CMD-check.yaml
9+
10+
permissions: read-all
11+
12+
jobs:
13+
R-CMD-check:
14+
runs-on: ${{ matrix.config.os }}
15+
16+
name: ${{ matrix.config.os }} (${{ matrix.config.r }})
17+
18+
strategy:
19+
fail-fast: false
20+
matrix:
21+
config:
22+
- {os: macos-latest, r: 'release'}
23+
- {os: windows-latest, r: 'release'}
24+
- {os: ubuntu-latest, r: 'devel', http-user-agent: 'release'}
25+
- {os: ubuntu-latest, r: 'release'}
26+
- {os: ubuntu-latest, r: 'oldrel-1'}
27+
28+
env:
29+
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
30+
R_KEEP_PKG_SOURCE: yes
31+
32+
steps:
33+
- uses: actions/checkout@v6
34+
35+
- uses: r-lib/actions/setup-pandoc@v2
36+
37+
- uses: r-lib/actions/setup-r@v2
38+
with:
39+
r-version: ${{ matrix.config.r }}
40+
http-user-agent: ${{ matrix.config.http-user-agent }}
41+
42+
- uses: r-lib/actions/setup-r-dependencies@v2
43+
with:
44+
extra-packages: any::rcmdcheck
45+
needs: check
46+
47+
- uses: r-lib/actions/check-r-package@v2
48+
with:
49+
upload-snapshots: true
50+
build_args: 'c("--no-manual","--compact-vignettes=gs+qpdf")'

AssumptionPlotter/.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
inst/doc
2+
**/.quarto/

0 commit comments

Comments
 (0)