From 5fda2d2344870fb03ce372dce838946bf345a190 Mon Sep 17 00:00:00 2001 From: mtennekes Date: Fri, 8 Sep 2023 22:37:38 +0200 Subject: [PATCH] added start-up message --- DESCRIPTION | 4 ++-- R/onLoad.R | 4 ++++ man/tm_layout.Rd | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/DESCRIPTION b/DESCRIPTION index d48647cf..18d73978 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -16,7 +16,7 @@ Authors@R: c( ) Description: Thematic maps are geographical maps in which spatial data distributions are visualized. This package offers a flexible, layer-based, and easy to use approach to create thematic maps, such as choropleths and bubble maps. Version: 3.3-4 -Date: 2023-04-05 +Date: 2023-09-08 Encoding: UTF-8 Depends: R (>= 3.5.0), @@ -59,4 +59,4 @@ Suggests: URL: https://r-tmap.github.io/tmap/, https://github.com/r-tmap/tmap BugReports: https://github.com/r-tmap/tmap/issues VignetteBuilder: knitr -RoxygenNote: 7.1.2 +RoxygenNote: 7.2.3 diff --git a/R/onLoad.R b/R/onLoad.R index 2cfd605a..6aae3836 100644 --- a/R/onLoad.R +++ b/R/onLoad.R @@ -16,6 +16,10 @@ } +.onAttach <- function(libname, pkgname) { + packageStartupMessage("Breaking News: tmap 3.x is retiring. Please test the upcoming tmap 4.x (on GitHub).") +} + .TMAP_CACHE <- new.env(FALSE, parent=globalenv()) .crs_longlat <- sf::st_crs(4326) diff --git a/man/tm_layout.Rd b/man/tm_layout.Rd index 209de964..c9bb2201 100644 --- a/man/tm_layout.Rd +++ b/man/tm_layout.Rd @@ -108,7 +108,7 @@ tm_format(format, ...) \item{aes.color}{Default color values for the aesthetics layers. Should be a named vector with the names chosen from: \code{fill}, \code{borders}, \code{symbols}, \code{dots}, \code{lines}, \code{text}, \code{na}. Use \code{"#00000000"} for transparency.} -\item{aes.palette}{Default color palettes for the aesthetics. It takes a list of three items: \code{seq} for sequential palettes, \code{div} for diverging palettes, and \code{cat} for categorical palettes. By default, Color Brewer palettes (see (see \code{tmaptools::palette_explorer()})) are used. It is also possible provide a vector of colors for any of these items.} +\item{aes.palette}{Default color palettes for the aesthetics. It takes a list of three items: \code{seq} for sequential palettes, \code{div} for diverging palettes, and \code{cat} for categorical palettes. By default, Color Brewer palettes (see \code{tmaptools::palette_explorer()}) are used. It is also possible provide a vector of colors for any of these items.} \item{attr.color}{Default color value for map attributes}