Skip to content

Commit 50da32c

Browse files
authored
Fix R CMD check errors, warnings, notes (#1)
* Build fixes * roxygen2md * Use GitHub action for checks
1 parent e53edbd commit 50da32c

26 files changed

+921
-929
lines changed

.Rbuildignore

+2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
^.*\.Rproj$
22
^\.Rproj\.user$
3+
^LICENSE\.md$
4+
^\.github$

.github/.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
*.html

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

+49
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
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+
9+
name: R-CMD-check
10+
11+
jobs:
12+
R-CMD-check:
13+
runs-on: ${{ matrix.config.os }}
14+
15+
name: ${{ matrix.config.os }} (${{ matrix.config.r }})
16+
17+
strategy:
18+
fail-fast: false
19+
matrix:
20+
config:
21+
- {os: macos-latest, r: 'release'}
22+
- {os: windows-latest, r: 'release'}
23+
- {os: ubuntu-latest, r: 'devel', http-user-agent: 'release'}
24+
- {os: ubuntu-latest, r: 'release'}
25+
- {os: ubuntu-latest, r: 'oldrel-1'}
26+
27+
env:
28+
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
29+
R_KEEP_PKG_SOURCE: yes
30+
31+
steps:
32+
- uses: actions/checkout@v4
33+
34+
- uses: r-lib/actions/setup-pandoc@v2
35+
36+
- uses: r-lib/actions/setup-r@v2
37+
with:
38+
r-version: ${{ matrix.config.r }}
39+
http-user-agent: ${{ matrix.config.http-user-agent }}
40+
use-public-rspm: true
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

DESCRIPTION

+19-19
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,27 @@
1-
Package: SRSim
21
Type: Package
2+
Package: SRSim
33
Title: Spontaneous Reporting Simulator (SRSim)
44
Version: 0.1
5-
Date: 2018-01-18
65
Author: Louis Dijkstra [aut, cre], Marco Garling [ctb]
76
Maintainer: Louis Dijkstra <[email protected]>
8-
Description: A package for simulating spontaneous reporting
9-
data as used in the field of pharmacovigilance.
7+
Description: A package for simulating spontaneous reporting data as used
8+
in the field of pharmacovigilance.
9+
License: GPL (>= 3)
10+
URL: https://github.com/bips-hb/srsim
11+
BugReports: https://github.com/bips-hb/srsim/issues
1012
Depends:
11-
R (>= 3.2.3),
12-
Rcpp,
13-
RcppArmadillo,
14-
RcppProgress,
15-
dplyr,
16-
tidyr,
17-
mvtnorm,
18-
corpcor,
19-
pcalg,
20-
Rgraphviz
21-
LinkingTo: Rcpp, RcppArmadillo, RcppProgress
22-
License: GPL-3
13+
R (>= 3.2.3)
14+
Imports:
15+
corpcor,
16+
igraph,
17+
Rcpp,
18+
RcppArmadillo,
19+
tibble
20+
LinkingTo:
21+
Rcpp,
22+
RcppArmadillo,
23+
RcppProgress
2324
Encoding: UTF-8
2425
LazyData: true
25-
RoxygenNote: 6.0.1
26-
URL: https://github.com/bips-hb/srsim
27-
BugReports: https://github.com/bips-hb/srsim/issues
26+
RoxygenNote: 7.3.1
27+
Roxygen: list(markdown = TRUE)

0 commit comments

Comments
 (0)