Skip to content

Commit 9f2248e

Browse files
authored
Merge pull request #43 from nutriverse/vignettes
Vignettes
2 parents 74837a1 + f2ff6d1 commit 9f2248e

39 files changed

+1655
-6159
lines changed

.Rbuildignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,9 @@
1010
^doc$
1111
^Meta$
1212
^data-raw$
13+
^README\.qmd$
14+
^README_files$
15+
^mwana\.Rproj$
16+
^vignettes/plausibility_files$
17+
^vignettes/prevalence_files$
18+
^vignettes/sample_size_files$

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

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,13 @@ jobs:
3131
steps:
3232
- uses: actions/checkout@v4
3333

34+
- uses: quarto-dev/quarto-actions/setup@v2
35+
env:
36+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
37+
with:
38+
version: ${{ matrix.config.quarto || 'release' }}
39+
tinytex: true
40+
3441
- uses: r-lib/actions/setup-pandoc@v2
3542

3643
- uses: r-lib/actions/setup-r@v2
@@ -41,7 +48,8 @@ jobs:
4148

4249
- uses: r-lib/actions/setup-r-dependencies@v2
4350
with:
44-
extra-packages: any::rcmdcheck
51+
# install the package itself as we register vignette engine
52+
extra-packages: any::rcmdcheck, local::.
4553
needs: check
4654

4755
- uses: r-lib/actions/check-r-package@v2

.github/workflows/pkgdown.yaml

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
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+
branches: [main, master]
8+
release:
9+
types: [published]
10+
workflow_dispatch:
11+
12+
name: pkgdown.yaml
13+
14+
permissions: read-all
15+
16+
jobs:
17+
pkgdown:
18+
runs-on: ubuntu-latest
19+
# Only restrict concurrency for non-PR jobs
20+
concurrency:
21+
group: pkgdown-${{ github.event_name != 'pull_request' || github.run_id }}
22+
env:
23+
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
24+
permissions:
25+
contents: write
26+
steps:
27+
- uses: actions/checkout@v4
28+
29+
- name: Set up Quarto
30+
uses: quarto-dev/quarto-actions/setup@v2
31+
32+
- uses: r-lib/actions/setup-pandoc@v2
33+
34+
- uses: r-lib/actions/setup-r@v2
35+
with:
36+
use-public-rspm: true
37+
38+
- uses: r-lib/actions/setup-r-dependencies@v2
39+
with:
40+
extra-packages: any::pkgdown, local::.
41+
needs: website
42+
43+
- name: Build site
44+
run: pkgdown::build_site_github_pages(new_process = FALSE, install = FALSE)
45+
shell: Rscript {0}
46+
47+
- name: Deploy to GitHub pages 🚀
48+
if: github.event_name != 'pull_request'
49+
uses: JamesIves/github-pages-deploy-action@v4.5.0
50+
with:
51+
clean: false
52+
branch: gh-pages
53+
folder: docs

.github/workflows/pr-commands.yaml

Lines changed: 0 additions & 79 deletions
This file was deleted.

.github/workflows/test-coverage.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ jobs:
1313
runs-on: ubuntu-latest
1414
env:
1515
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
16+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
1617

1718
steps:
1819
- uses: actions/checkout@v4

.gitignore

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,11 @@ inst/doc
99
docs
1010
/doc/
1111
/Meta/
12+
13+
/README_files/
14+
15+
/vignettes/plausibility_files/
16+
/vignettes/prevalence_files/
17+
/vignettes/sample_size_files/
18+
19+
/.quarto/

DESCRIPTION

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ Description: A streamlined and comprehensive implementation of the Standardized
1515
handling large multiple datasets.
1616
License: GPL (>= 3)
1717
URL: https://github.com/nutriverse/mwana, https://nutriverse.io/mwana
18-
BugReports: https://github.com/nutriverse/mwana/issues
1918
Imports:
2019
dplyr (>= 1.1.4),
2120
lubridate,
@@ -29,6 +28,7 @@ Imports:
2928
Suggests:
3029
knitr,
3130
rmarkdown,
31+
quarto,
3232
spelling,
3333
testthat (>= 3.0.0)
3434
Config/testthat/edition: 3
@@ -39,4 +39,4 @@ RoxygenNote: 7.3.2
3939
Depends:
4040
R (>= 4.1)
4141
LazyData: true
42-
VignetteBuilder: knitr
42+
VignetteBuilder: quarto

R/age.R

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,10 @@ compute_age_in_months <- function (surv_date, birth_date) {
3838

3939

4040
#'
41-
#' Wrangle child's age
41+
#' Process child's age
4242
#'
4343
#' @description
44-
#' Wrangle child's age for downstream analysis. This includes calculating age
44+
#' Process child's age for downstream analysis. This includes calculating age
4545
#' in months based on the date of data collection and child's date of birth and
4646
#' setting to `NA` the age values that are less than 6.0 and greater than or equal
4747
#' to 60.0 months old.
@@ -66,6 +66,7 @@ compute_age_in_months <- function (surv_date, birth_date) {
6666
#' @examples
6767
#'
6868
#' ## A sample data ----
69+
#'
6970
#' df <- data.frame(
7071
#' survy_date = as.Date(c(
7172
#' "2023-01-01", "2023-01-01", "2023-01-01", "2023-01-01", "2023-01-01")),

README.Rmd

Lines changed: 0 additions & 158 deletions
This file was deleted.

0 commit comments

Comments
 (0)