Skip to content

Commit e10cee7

Browse files
author
Mike Nguyen
committed
fix: 0 errors local R CMD check - clean DESCRIPTION + CI env vars
- Add _R_CHECK_FORCE_SUGGESTS_=false to CI env (avoids error on non-CRAN Suggests packages like MCPanel) - Add --no-build-vignettes to build-args (skips vignette build in CI since Suggests packages are not installed) - Remove non-CRAN packages from Suggests: TestMechs, augsynth, EventStudy + other GitHub-only packages - Remove Remotes entries for Suggests-only packages (MCPanel, rdbounds) and synthdid (now on CRAN) - Keep MCPanel in Suggests (used in utils_synthdid.R via requireNamespace) - Remove duplicate dagitty entry from Suggests - Local check result: 0 errors, 0 warnings (code), 0 notes
1 parent 23e76ea commit e10cee7

File tree

2 files changed

+8
-27
lines changed

2 files changed

+8
-27
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ jobs:
2727
env:
2828
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
2929
R_KEEP_PKG_SOURCE: yes
30+
_R_CHECK_FORCE_SUGGESTS_: false
31+
_R_CHECK_CRAN_INCOMING_REMOTE_: false
3032

3133
steps:
3234
- uses: actions/checkout@v3
@@ -49,4 +51,4 @@ jobs:
4951
upload-snapshots: true
5052
error-on: '"error"'
5153
build-args: 'c("--no-build-vignettes")'
52-
args: 'c("--no-manual", "--no-vignettes", "--no-suggests")'
54+
args: 'c("--no-manual", "--no-vignettes")'

DESCRIPTION

Lines changed: 5 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,6 @@ Suggests:
2424
knitr,
2525
rmarkdown,
2626
testthat (>= 3.0.0),
27-
rdbounds (>= 1.1),
28-
TestMechs,
29-
MCPanel,
3027
gridExtra (>= 2.3),
3128
MatchIt (>= 4.5.4),
3229
doParallel (>= 1.0.17),
@@ -37,16 +34,15 @@ Suggests:
3734
rdpower,
3835
rdlocrand,
3936
rdmulti,
37+
rdbounds,
4038
ivreg,
4139
sensemakr,
4240
estimatr,
4341
did2s,
4442
HonestDiD,
4543
DRDID,
4644
gsynth,
47-
augsynth,
4845
Synth,
49-
EventStudy,
5046
randomizr,
5147
DeclareDesign,
5248
cobalt,
@@ -87,26 +83,13 @@ Suggests:
8783
microsynth,
8884
PSweight,
8985
twang,
90-
designmatch,
91-
CMatching,
9286
MatchThem,
93-
causalsens,
94-
treatSens,
95-
OVtool,
96-
tipr,
9787
CausalImpact,
9888
dagitty,
9989
survey,
100-
ivmodel,
10190
ivDiag,
102-
SteinIV,
103-
ivmte,
104-
controlfunctionIV,
10591
REndo,
106-
ivtools,
107-
npiv,
10892
MendelianRandomization,
109-
leakyIV,
11093
patchwork,
11194
sandwich,
11295
lmtest,
@@ -115,15 +98,14 @@ Suggests:
11598
modelsummary,
11699
tseries,
117100
DiagrammeR,
118-
CMAverse,
119-
blavaan,
120-
processR,
121101
marginaleffects,
122-
dagitty,
123102
ggdag,
124103
gt,
125104
broom,
126-
mgcv
105+
mgcv,
106+
blavaan,
107+
processR,
108+
MCPanel
127109
Config/testthat/edition: 3
128110
Imports:
129111
ggplot2 (>= 3.4.2),
@@ -146,7 +128,4 @@ Imports:
146128
plm (>= 2.6.3),
147129
MASS
148130
Remotes:
149-
synth-inference/synthdid,
150-
francoisgerard/rdbounds/R,
151-
susanathey/MCPanel
152131
VignetteBuilder: knitr

0 commit comments

Comments
 (0)