From a0e8fcd4464fff30267903e0cc3ca7ae71c2542e Mon Sep 17 00:00:00 2001 From: Marvin Wright Date: Wed, 6 Dec 2023 20:58:12 +0100 Subject: [PATCH] improve startup message --- R/onAttach.R | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/R/onAttach.R b/R/onAttach.R index 3f098998..e956271e 100644 --- a/R/onAttach.R +++ b/R/onAttach.R @@ -7,11 +7,11 @@ threads_option <- getOption("ranger.num.threads") threads_env <- Sys.getenv("R_RANGER_NUM_THREADS") if (!is.null(threads_option)) { - thread_string <- paste(threads_option, "threads (set by options(ranger.num.threads = N).") + thread_string <- paste(threads_option, "threads as set by options(ranger.num.threads = N). Can be overwritten with num.threads.") } else if (threads_env != "") { - thread_string <- paste(threads_env, "threads (set by environment variable 'R_RANGER_NUM_THREADS').") + thread_string <- paste(threads_env, "threads as set by environment variable R_RANGER_NUM_THREADS. Can be overwritten with num.threads.") } else { - thread_string <- "2 threads (default). Change with num.threads in ranger() and predict(), options(ranger.num.threads = N) or environment variable 'R_RANGER_NUM_THREADS'." + thread_string <- "2 threads (default). Change with num.threads in ranger() and predict(), options(ranger.num.threads = N) or environment variable R_RANGER_NUM_THREADS." } packageStartupMessage(paste("ranger", packageVersion("ranger"), "using", thread_string))