Skip to content

Commit

Permalink
update initial load package message
Browse files Browse the repository at this point in the history
  • Loading branch information
gilbertocamara committed Nov 24, 2024
1 parent 591507d commit 7cb69cb
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 6 deletions.
11 changes: 11 additions & 0 deletions R/zzz.R
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,17 @@
"https://e-sensing.github.io/sitsbook/"
)
)
if (Sys.info()["sysname"] == "Darwin") {
if (grepl("4.4", R.version.string)) {
packageStartupMessage(
sprintf(
"Running R-4.4 on MacOS.
Please read section \"Fixing problems in MacOS\" in
https://github.com/e-sensing/sits."
)
)
}
}
}
.onLoad <- function(lib, pkg) {
Sys.setenv(R_CONFIG_FILE = "config.yml")
Expand Down
3 changes: 0 additions & 3 deletions src/Makevars

This file was deleted.

3 changes: 1 addition & 2 deletions src/Makevars.win
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
# CXX_STD = CXX14
PKG_CXXFLAGS = $(SHLIB_OPENMP_CXXFLAGS)
PKG_LIBS = $(SHLIB_OPENMP_CXXFLAGS) $(LAPACK_LIBS) $(BLAS_LIBS) $(FLIBS)
PKG_LIBS = $(LAPACK_LIBS) $(BLAS_LIBS) $(FLIBS)
2 changes: 1 addition & 1 deletion tests/testthat/test-tuning.R
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
test_that("Tuning - random search", {
Sys.setenv("OMP_NUM_THREADS" = 1)
#Sys.setenv("OMP_NUM_THREADS" = 1)

set.seed(123)
torch::torch_manual_seed(1234)
Expand Down

0 comments on commit 7cb69cb

Please sign in to comment.