-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f41827e
commit aa69749
Showing
3 changed files
with
25 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,13 @@ | ||
# Suppress R CMD check note | ||
#' @importFrom locateip locate_ip | ||
#' @importFrom wikirest get_most_viewed_per_country | ||
NULL | ||
|
||
# Show message when loading package | ||
#' @title Package Attach Hook Function | ||
#' @description This function is automatically called when the `clessnverse` package is attached using `library(clessnverse)`. | ||
#' It ensures that the `sondr` package is also loaded, making all its functions available in the user's session. | ||
#' Additionally, it displays a startup message with a disclaimer about the maintenance status of `clessnverse`. | ||
#' @keywords internal | ||
.onAttach <- function(libname, pkgname) { | ||
packageStartupMessage("DISCLAIMER: As of July 2023, `clessnverse` is no longer under active development. | ||
if (require("sondr", character.only = TRUE, quietly = TRUE)) { | ||
packageStartupMessage("DISCLAIMER: As of July 2023, `clessnverse` is no longer under active development. | ||
To avoid breaking dependencies, the package remains available \"as is\" with no warranty of any kind.") | ||
} | ||
} else { | ||
warning("Package 'sondr' is not available. Some functionality may be missing.") | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.