diff --git a/R/mf_init.R b/R/mf_init.R index e246e06..dece5e6 100644 --- a/R/mf_init.R +++ b/R/mf_init.R @@ -9,6 +9,7 @@ #' direction (bottom, left, top, right) #' @param theme apply a theme (deprecated) #' @export +#' @keywords internal #' @importFrom sf st_bbox st_as_sfc st_geometry st_crs<- #' @return No return value, a map is initiated. #' @examples diff --git a/R/package.R b/R/package.R index 7f24faf..809dfdc 100644 --- a/R/package.R +++ b/R/package.R @@ -21,7 +21,6 @@ #' #' @section Map layout: #' These functions are dedicated to the map layout design. -#' - [mf_init()] Initialize a map with a specific extent #' - [mf_theme()] Set a theme #' - [mf_shadow()] Plot a shadow #' - [mf_background()] Plot a background image diff --git a/inst/tinytest/test_background.R b/inst/tinytest/test_background.R index 70d73fc..eca6525 100644 --- a/inst/tinytest/test_background.R +++ b/inst/tinytest/test_background.R @@ -1,5 +1,5 @@ mtq <- mf_get_mtq() -mf_init(mtq) +mf_map(mtq) expect_silent(mf_background(system.file("img/background.jpg", package = "mapsf"))) expect_silent(mf_background(system.file("help/figures/logo.png", diff --git a/man/mapsf.Rd b/man/mapsf.Rd index afff21d..002759f 100644 --- a/man/mapsf.Rd +++ b/man/mapsf.Rd @@ -31,7 +31,6 @@ These functions display cartographic layers. These functions are dedicated to the map layout design. \itemize{ -\item \code{\link[=mf_init]{mf_init()}} Initialize a map with a specific extent \item \code{\link[=mf_theme]{mf_theme()}} Set a theme \item \code{\link[=mf_shadow]{mf_shadow()}} Plot a shadow \item \code{\link[=mf_background]{mf_background()}} Plot a background image diff --git a/man/mf_init.Rd b/man/mf_init.Rd index a3cee19..be3e919 100644 --- a/man/mf_init.Rd +++ b/man/mf_init.Rd @@ -29,3 +29,4 @@ target <- mtq[30, ] mf_init(target) mf_map(mtq, add = TRUE) } +\keyword{internal} diff --git a/pkgdown/_pkgdown.yml b/pkgdown/_pkgdown.yml index d03cb00..e01b02e 100644 --- a/pkgdown/_pkgdown.yml +++ b/pkgdown/_pkgdown.yml @@ -31,7 +31,6 @@ reference: - title: "Map Layout" desc: These functions are dedicated to the map layout design. contents: - - mf_init - mf_theme - mf_shadow - mf_background