Skip to content

Commit

Permalink
ajout sondr
Browse files Browse the repository at this point in the history
  • Loading branch information
laurenceomfoisy committed Feb 12, 2024
1 parent f41827e commit aa69749
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 11 deletions.
2 changes: 0 additions & 2 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ importFrom(ggplot2,theme)
importFrom(ggplot2,theme_classic)
importFrom(ggplot2,waiver)
importFrom(lifecycle,deprecated)
importFrom(locateip,locate_ip)
importFrom(magrittr,`%>%`)
importFrom(purrr,map_dfr)
importFrom(rlang,abort)
Expand All @@ -77,4 +76,3 @@ importFrom(testthat,expect_warning)
importFrom(testthat,test_that)
importFrom(tictoc,tic)
importFrom(tictoc,toc)
importFrom(wikirest,get_most_viewed_per_country)
20 changes: 11 additions & 9 deletions R/clessnverse.R
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.")
}
}
14 changes: 14 additions & 0 deletions man/dot-onAttach.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit aa69749

Please sign in to comment.