Skip to content

Commit c19ad9a

Browse files
Initial commit
0 parents  commit c19ad9a

Some content is hidden

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

55 files changed

+1402
-0
lines changed

.Rbuildignore

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
^LICENSE\.md$
2+
^_pkgdown\.yml$
3+
^docs$
4+
^pkgdown$
5+
^data-raw/DATASET\.R$
6+
^data-raw/fns/get\.R$
7+
^data-raw/logo/cover\.png$
8+
^data-raw/logo/default\.png$
9+
^data-raw/logo/info\.txt$
10+
^data-raw/logo/profile\.png$
11+
^data-raw/logo/vector/default-monochrome-black\.svg$
12+
^data-raw/logo/vector/default-monochrome-white\.svg$
13+
^data-raw/logo/vector/default-monochrome\.svg$
14+
^data-raw/logo/vector/default\.svg$
15+
^data-raw/logo/vector/isolated-layout\.svg$
16+
^data-raw/logo/vector/isolated-monochrome-black\.svg$
17+
^data-raw/logo/vector/isolated-monochrome-white\.svg$
18+
^data-raw/NOTES\.R$
19+
^\.github$
20+
^initial_setup\.R$
21+
^doc$
22+
^Meta$

.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: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
# Adapted from: https://github.com/ready4-dev/ready4class/runs/3657635374?check_suite_focus=true
2+
#
3+
# For help debugging build failures open an issue on the RStudio community with the 'github-actions' tag.
4+
# https://community.rstudio.com/new-topic?category=Package%20development&tags=github-actions
5+
on:
6+
push:
7+
branches:
8+
- main
9+
- master
10+
pull_request:
11+
branches:
12+
- main
13+
- master
14+
15+
name: R-CMD-check
16+
17+
jobs:
18+
R-CMD-check:
19+
runs-on: ${{ matrix.config.os }}
20+
21+
name: ${{ matrix.config.os }} (${{ matrix.config.r }})
22+
23+
strategy:
24+
fail-fast: false
25+
matrix:
26+
config:
27+
- {os: macOS-latest, r: 'release'}
28+
- {os: windows-latest, r: 'release'}
29+
- {os: ubuntu-latest, r: 'release'}
30+
#- {os: windows-latest, r: '3.6'}
31+
# - {os: ubuntu-20.04, r: 'devel', rspm: "https://packagemanager.rstudio.com/cran/__linux__/focal/latest", http-user-agent: "R/4.0.0 (ubuntu-20.04) R (4.0.0 x86_64-pc-linux-gnu x86_64 linux-gnu) on GitHub Actions" }
32+
# - {os: ubuntu-20.04, r: 'release', rspm: "https://packagemanager.rstudio.com/cran/__linux__/focal/latest"}
33+
#- {os: ubuntu-20.04, r: 'oldrel', rspm: "https://packagemanager.rstudio.com/cran/__linux__/focal/latest"}
34+
35+
env:
36+
R_REMOTES_NO_ERRORS_FROM_WARNINGS: true
37+
RSPM: ${{ matrix.config.rspm }}
38+
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
39+
40+
steps:
41+
- uses: actions/checkout@v3 #
42+
- uses: r-lib/actions/setup-r@v2
43+
# with:
44+
# r-version: ${{ matrix.config.r }}
45+
# http-user-agent: ${{ matrix.config.http-user-agent }}
46+
# use-public-rspm: true
47+
- uses: r-lib/actions/setup-tinytex@v2
48+
- run: tlmgr --version
49+
- uses: r-lib/actions/setup-pandoc@v2
50+
with:
51+
pandoc-version: '2.17.1' # The pandoc version to download (if necessary) and use.
52+
- run: echo "# Test" | pandoc -t html
53+
# Addresses issue with incompatibility between libcurl4-gnutls-dev and libcurl4-openssl-dev
54+
# Below fix is a customisation of approach outlined in https://github.com/r-hub/sysreqsdb/issues/77#issuecomment-620025428
55+
- name: Install libraptor on Linux
56+
if: runner.os == 'Linux'
57+
run: |
58+
sudo add-apt-repository ppa:cran/librdf
59+
sudo apt update
60+
- uses: r-lib/actions/setup-r-dependencies@v2
61+
with:
62+
extra-packages: any::XML, any::rcmdcheck
63+
needs: check
64+
- uses: r-lib/actions/check-r-package@v2
65+
with:
66+
args: 'c("--no-manual", "--as-cran")'
67+
error-on: '"error"'
68+
check-dir: '"check"'

.github/workflows/pkgdown.yaml

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
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+
release:
8+
types: [published]
9+
workflow_dispatch:
10+
11+
name: pkgdown.yaml
12+
13+
permissions: read-all
14+
15+
jobs:
16+
pkgdown:
17+
runs-on: ubuntu-latest
18+
# Only restrict concurrency for non-PR jobs
19+
concurrency:
20+
group: pkgdown-${{ github.event_name != 'pull_request' || github.run_id }}
21+
env:
22+
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
23+
permissions:
24+
contents: write
25+
steps:
26+
- uses: actions/checkout@v4
27+
28+
- uses: r-lib/actions/setup-tinytex@v2
29+
30+
- uses: r-lib/actions/setup-tinytex@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+
# Addresses issue with incompatibility between libcurl4-gnutls-dev and libcurl4-openssl-dev
39+
# Below fix is a customisation of approach outlined in https://github.com/r-hub/sysreqsdb/issues/77#issuecomment-620025428
40+
- name: Install libraptor on Linux
41+
if: runner.os == 'Linux'
42+
run: |
43+
sudo add-apt-repository ppa:cran/librdf
44+
sudo apt update
45+
46+
# Addresses issue with incompatibility between libcurl4-gnutls-dev and libcurl4-openssl-dev
47+
# Below fix is a customisation of approach outlined in https://github.com/r-hub/sysreqsdb/issues/77#issuecomment-620025428
48+
- name: Install libraptor on Linux
49+
if: runner.os == 'Linux'
50+
run: |
51+
sudo add-apt-repository ppa:cran/librdf
52+
sudo apt update
53+
54+
- uses: r-lib/actions/setup-r-dependencies@v2
55+
with:
56+
extra-packages: any::XML, any::pkgdown, local::.
57+
needs: website
58+
59+
- name: Build site
60+
run: pkgdown::build_site_github_pages(new_process = FALSE, install = FALSE)
61+
shell: Rscript {0}
62+
63+
- name: Deploy to GitHub pages 🚀
64+
if: github.event_name != 'pull_request'
65+
uses: JamesIves/github-pages-deploy-action@v4.5.0
66+
with:
67+
clean: false
68+
branch: gh-pages
69+
folder: docs

.gitignore

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
# History files
2+
.Rhistory
3+
.Rapp.history
4+
5+
# Session Data files
6+
.RData
7+
.RDataTmp
8+
9+
# User-specific files
10+
.Ruserdata
11+
12+
# Example code in package build process
13+
*-Ex.R
14+
15+
# Output files from R CMD build
16+
/*.tar.gz
17+
18+
# Output files from R CMD check
19+
/*.Rcheck/
20+
21+
# RStudio files
22+
.Rproj.user/
23+
24+
# produced vignettes
25+
vignettes/*.html
26+
vignettes/*.pdf
27+
28+
# OAuth2 token, see https://github.com/hadley/httr/releases/tag/v0.3
29+
.httr-oauth
30+
31+
# knitr and R markdown default cache directories
32+
*_cache/
33+
/cache/
34+
35+
# Temporary files created by R markdown
36+
*.utf8.md
37+
*.knit.md
38+
39+
# R Environment Variables
40+
.Renviron
41+
42+
# pkgdown site
43+
docs/
44+
45+
# translation temp files
46+
po/*~
47+
48+
# RStudio Connect folder
49+
rsconnect/
50+
docs
51+
/doc/
52+
/Meta/

CITATION.cff

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
cff-version: 1.2.0
2+
message: "Author1Given Author1Family (2024). template: Do Something Related to Mental Health Economic Modelling. Version 0.0.0.9002. "
3+
authors:
4+
- family-names: "Author1Family"
5+
given-names: "Author1Given"
6+
title: "template: Do Something Related to Mental Health Economic Modelling"
7+
version: 0.0.0.9002
8+
date-released: 2024-12-02
9+
url: "https://ready4-dev.github.io/template/"

DESCRIPTION

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
Package: template
2+
Title: Do Something Related to Mental Health Economic Modelling
3+
Version: 0.0.0.9003
4+
Authors@R: c(
5+
person("Author1Given", "Author1Family", , "name@example.com", role = c("aut", "cre"),
6+
comment = c(ORCID = "0000-0000-0000-0000")),
7+
person("CopyrightHolder", role = "cph")
8+
)
9+
Description: A description of what this model module library does. Mention
10+
that it is developed with the ready4 framework
11+
(https://ready4-dev.github.io/ready4/). If a development version, you
12+
may wish to note that the software has been made available as part of
13+
the process of testing and documenting the library. You can also
14+
direct users with any questions about the library to the maintainer's
15+
email address (supply email here).
16+
License: GPL-3
17+
URL: https://ready4-dev.github.io/template/,
18+
https://github.com/ready4-dev/template,
19+
https://ready4-dev.github.io/ready4/
20+
Encoding: UTF-8
21+
Roxygen: list(markdown = TRUE)
22+
RoxygenNote: 7.3.2
23+
Suggests:
24+
knitr,
25+
knitrBootstrap,
26+
pkgload,
27+
rmarkdown,
28+
testthat
29+
VignetteBuilder: knitr
30+
Imports:
31+
lifecycle,
32+
magrittr,
33+
methods,
34+
purrr,
35+
rlang

0 commit comments

Comments
 (0)