Skip to content

Commit 3c65e1f

Browse files
committed
attempt fixing linux/macos installation error
1 parent 37c7ee6 commit 3c65e1f

5 files changed

Lines changed: 6 additions & 5 deletions

File tree

NAMESPACE

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ import(ggplot2)
2727
import(rhdf5)
2828
importFrom(Matrix,sparseMatrix)
2929
importFrom(Rcpp,sourceCpp)
30+
importFrom(RcppParallel,RcppParallelLibs)
31+
importFrom(RcppParallel,setThreadOptions)
3032
importFrom(ape,read.tree)
3133
importFrom(data.table,":=")
3234
importFrom(data.table,.SD)

R/OmicFlow-package.R

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
#' @importFrom data.table := .SD
66
#' @useDynLib OmicFlow, .registration = TRUE
77
#' @importFrom Rcpp sourceCpp
8+
#' @importFrom RcppParallel RcppParallelLibs
9+
#' @importFrom RcppParallel setThreadOptions
810
#' @importFrom utils globalVariables
911
## usethis namespace: end
1012

man/OmicFlow-package.Rd

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

src/Makevars

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
PKG_CXX11FLAGS = -O3
2-
PKG_LIBS = `${R_HOME}/bin/Rscript -e "RcppParallel::RcppParallelLibs()"` $(LAPACK_LIBS) $(BLAS_LIBS) $(FLIBS)
1+
PKG_CXX11FLAGS = -O3

src/Makevars.win

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
PKG_CXX11FLAGS = -O3 -DRCPP_PARALLEL_USE_TBB=1
2-
PKG_LIBS += $(shell "${R_HOME}/bin${R_ARCH_BIN}/Rscript.exe" \
3-
-e "RcppParallel::RcppParallelLibs()") $(LAPACK_LIBS) $(BLAS_LIBS) $(FLIBS)
2+
PKG_LIBS = $(shell "${R_HOME}/bin${R_ARCH_BIN}/Rscript.exe" -e "RcppParallel::RcppParallelLibs()") $(LAPACK_LIBS) $(BLAS_LIBS) $(FLIBS)

0 commit comments

Comments
 (0)