Skip to content

Commit 9e8c52a

Browse files
committed
tweak example
1 parent decf56e commit 9e8c52a

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

R/gf_functions.R

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2849,11 +2849,9 @@ gf_sina <-
28492849
# #' @seealso [ggplot2::geom_sf()]
28502850
#' @export
28512851
#' @examples
2852-
#'
2853-
#' \dontrun{
2852+
#
28542853
#' if (requireNamespace('maps', quietly = TRUE)) {
2855-
#' library(maps)
2856-
#' world1 <- sf::st_as_sf(map('world', plot = FALSE, fill = TRUE))
2854+
#' world1 <- sf::st_as_sf(maps::map('world', plot = FALSE, fill = TRUE))
28572855
#' gf_sf(data = world1)
28582856
#' }
28592857
#'
@@ -2864,7 +2862,6 @@ gf_sina <-
28642862
#' )
28652863
#' gf_sf(data = world2)
28662864
#' }
2867-
#' }
28682865

28692866
# \dontrun{
28702867
# if (require(maps) && require(maptools) &&

0 commit comments

Comments
 (0)