From 73afdacc5a8e09041dc0566390db0c463a45844f Mon Sep 17 00:00:00 2001 From: "alex.hill@gmail.com" Date: Fri, 4 Oct 2024 17:24:33 +0100 Subject: [PATCH] add pkgload --- DESCRIPTION | 1 + R/zzz.R | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/DESCRIPTION b/DESCRIPTION index 080232a..f1a09e7 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -14,6 +14,7 @@ Imports: instantiate, logger, mosaic, + pkgload, R6, stats, stringr, diff --git a/R/zzz.R b/R/zzz.R index 788677e..18a2bdf 100644 --- a/R/zzz.R +++ b/R/zzz.R @@ -14,7 +14,7 @@ # system.file("bin/stan/model.stan", "epikinetics") will resolve correctly bin <- file.path(libname, pkgname, "bin") if (!dir.exists(bin)) { - message("Creating local bin directory") + packageStartupMessage("Creating local bin directory") dir.create(bin, recursive = TRUE, showWarnings = FALSE) } bin_stan <- file.path(libname, pkgname, "bin", "stan") @@ -25,6 +25,6 @@ cpp_options = list(stan_threads = TRUE), stanc_options = list("O1") ) - message("Finished compiling models") + packageStartupMessage("Finished compiling models") } }