Skip to content

Commit fb7ba96

Browse files
committed
attempt to fix R CMD CHECK
1 parent ea992f4 commit fb7ba96

File tree

15 files changed

+105
-106
lines changed

15 files changed

+105
-106
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+
^src/Makevars.in$

.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

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

man/ADHD.Rd

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/Wenchuan.Rd

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Makevars

Lines changed: 0 additions & 14 deletions
This file was deleted.

src/Makevars.in

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
CXX_STD = CXX20
2+
3+
PKG_CPPFLAGS = @RCPP_PARALLEL_CPPFLAGS@
4+
5+
PKG_LIBS = $(LAPACK_LIBS) $(BLAS_LIBS) $(FLIBS) @RCPP_PARALLEL_LIBS@

0 commit comments

Comments
 (0)