Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor to fix R CMD check issues #1

Open
wants to merge 9 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .Rbuildignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
^.*\.Rproj$
^\.Rproj\.user$
^LICENSE\.md$
^\.github$
^attic$
^README\.Rmd$
1 change: 1 addition & 0 deletions .github/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.html
51 changes: 51 additions & 0 deletions .github/workflows/R-CMD-check.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
# Workflow derived from https://github.com/r-lib/actions/tree/v2/examples
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help
on:
push:
branches: [main, master]
pull_request:

name: R-CMD-check.yaml

permissions: read-all

jobs:
R-CMD-check:
runs-on: ${{ matrix.config.os }}

name: ${{ matrix.config.os }} (${{ matrix.config.r }})

strategy:
fail-fast: false
matrix:
config:
- {os: macos-latest, r: 'release'}
- {os: windows-latest, r: 'release'}
- {os: ubuntu-latest, r: 'devel', http-user-agent: 'release'}
- {os: ubuntu-latest, r: 'release'}
- {os: ubuntu-latest, r: 'oldrel-1'}

env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
R_KEEP_PKG_SOURCE: yes

steps:
- uses: actions/checkout@v4

- uses: r-lib/actions/setup-pandoc@v2

- uses: r-lib/actions/setup-r@v2
with:
r-version: ${{ matrix.config.r }}
http-user-agent: ${{ matrix.config.http-user-agent }}
use-public-rspm: true

- uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages: any::rcmdcheck
needs: check

- uses: r-lib/actions/check-r-package@v2
with:
upload-snapshots: true
build_args: 'c("--no-manual","--compact-vignettes=gs+qpdf")'
43 changes: 21 additions & 22 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,26 +1,25 @@
Package: expard
Type: Package
Title: Drug EXPosures and ADRs
Package: expard
Title: Drug 'EXPosures' and 'ADRs'
Version: 1.0.0
Author: Louis Dijkstra
Maintainer: Louis Dijkstra <louisdijkstra@gmail.com>
Description: An R package for fitting complex drug exposure
and adverse drug reaction (ADR) relationships
Depends:
R (>= 3.4.3),
ggplot2,
crayon,
dplyr,
Matrix,
parallel
License: GPL-3
Encoding: UTF-8
LazyData: true
RoxygenNote: 7.2.3
Roxygen: list(markdown = TRUE)
Authors@R:
person("Louis", "Dijkstra", , "louisdijkstra@gmail.com", role = c("aut", "cre"))
Description: An R package for fitting complex drug exposure and adverse
drug reaction ('ADR') relationships. It can additionally be used to
simulate electronic healthcare record ('EHR') data of patients
observed across multiple timepoints.
License: GPL (>= 3)
URL: https://github.com/bips-hb/expard
BugReports: https://github.com/bips-hb/expard/issues
Suggests:
knitr,
rmarkdown
VignetteBuilder: knitr
Imports:
crayon,
dplyr,
ggplot2,
Matrix,
parallel,
rlang,
stats,
utils
Encoding: UTF-8
Roxygen: list(markdown = TRUE)
RoxygenNote: 7.3.2
Loading
Loading