Skip to content

Commit 1f13285

Browse files
authored
attempt to fix R CMD CHECK (#59)
* attempt to fix R CMD CHECK * try again * add cleanup * bugfix for >2 groups
1 parent ea992f4 commit 1f13285

20 files changed

+115
-114
lines changed

.Rbuildignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,4 @@
1111
^vignettes/introduction_cache
1212
^doc$
1313
^Meta$
14+
^\.vscode$

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
R_KEEP_PKG_SOURCE: yes
3030

3131
steps:
32-
- uses: actions/checkout@v3
32+
- uses: actions/checkout@v5
3333

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

.github/workflows/pkgdown.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
2222
BUILD_VIGNETTE: "true"
2323
steps:
24-
- uses: actions/checkout@v3
24+
- uses: actions/checkout@v5
2525

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

.github/workflows/pr-commands.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
permissions:
1919
contents: write
2020
steps:
21-
- uses: actions/checkout@v4
21+
- uses: actions/checkout@v5
2222

2323
- uses: r-lib/actions/pr-fetch@v2
2424
with:

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,5 @@ src/*.dll
88
.DS_Store
99
/doc/
1010
/Meta/
11+
src/Makevars
12+
src/Makevars.win

DESCRIPTION

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,11 @@ Imports:
3030
RdMacros: Rdpack
3131
LinkingTo:
3232
Rcpp,
33-
RcppProgress,
3433
RcppArmadillo,
3534
RcppParallel,
3635
dqrng,
3736
BH
38-
RoxygenNote: 7.3.2
37+
RoxygenNote: 7.3.3
3938
Depends:
4039
R (>= 3.5)
4140
LazyData: true

R/datasets.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
#' \item{startle}{Feeling jumpy or easily startled?}
3939
#' }
4040
#'
41-
#' @source \url{http://psychosystems.org/wp-content/uploads/2014/10/Wenchuan.csv}
41+
#' @source \url{https://psychosystems.org/wp-content/uploads/2014/10/Wenchuan.csv}
4242
#'
4343
#' @docType data
4444
#' @keywords datasets
@@ -93,7 +93,7 @@ NULL
9393
#' }
9494
#'
9595
#' @source \insertCite{Silk_2019_ADHD;textual}{bgms}.
96-
#' Data retrieved from \url{https://doi.org/10.1371/journal.pone.0211053.s004}.
96+
#' Data retrieved from \doi{doi:10.1371/journal.pone.0211053.s004}.
9797
#' Licensed under the CC-BY 4.0: https://creativecommons.org/licenses/by/4.0/
9898
#'
9999
#' @docType data

cleanup

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
# Remove generated Makevars files
3+
rm -f src/Makevars
4+
rm -f src/Makevars.win

configure

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#!/bin/sh
2+
3+
# Get flags from RcppParallel
4+
RCPP_PARALLEL_CPPFLAGS=`"${R_HOME}/bin/Rscript" -e "cat(RcppParallel::CxxFlags())"`
5+
RCPP_PARALLEL_LIBS=`"${R_HOME}/bin/Rscript" -e "cat(RcppParallel::LdFlags())"`
6+
7+
# Substitute into Makevars
8+
sed -e "s|@RCPP_PARALLEL_CPPFLAGS@|${RCPP_PARALLEL_CPPFLAGS}|" \
9+
-e "s|@RCPP_PARALLEL_LIBS@|${RCPP_PARALLEL_LIBS}|" \
10+
src/Makevars.in > src/Makevars

configure.win

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/bin/sh
2+
3+
RCPP_PARALLEL_CPPFLAGS=`"${R_HOME}/bin${R_ARCH_BIN}/Rscript.exe" -e "cat(RcppParallel::CxxFlags())"`
4+
RCPP_PARALLEL_LIBS=`"${R_HOME}/bin${R_ARCH_BIN}/Rscript.exe" -e "cat(RcppParallel::LdFlags())"`
5+
6+
# Substitute into Makevars.win
7+
sed -e "s|@RCPP_PARALLEL_CPPFLAGS@|${RCPP_PARALLEL_CPPFLAGS}|" \
8+
-e "s|@RCPP_PARALLEL_LIBS@|${RCPP_PARALLEL_LIBS}|" \
9+
src/Makevars.in > src/Makevars.win

0 commit comments

Comments
 (0)