From 0076c4f29c4fbc397cb7f0b6f31b28516405c300 Mon Sep 17 00:00:00 2001 From: Reinhold Kainhofer <r.kainhofer@wienerstaedtische.at> Date: Sun, 22 Oct 2023 23:51:37 +0200 Subject: [PATCH] Add warning message on package loading --- R/HelperFunctions.R | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/R/HelperFunctions.R b/R/HelperFunctions.R index 68bbc4e..18cfbca 100644 --- a/R/HelperFunctions.R +++ b/R/HelperFunctions.R @@ -2,3 +2,7 @@ # Prevent spurious imports warnings in CRAN checks: #' @importFrom rmarkdown render NULL + +.onAttach <- function(libname, pkgname) { + warning("The LifeInsuranceContracts package has been renamed to LifeInsureR. \nPlease use library(LifeInsureR) instead!") +} -- GitLab