Skip to content

Commit

Permalink
Update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
dieghernan committed Jan 3, 2025
1 parent 01ccc8c commit 0cbc9f0
Show file tree
Hide file tree
Showing 12 changed files with 15 additions and 3 deletions.
13 changes: 12 additions & 1 deletion R/fortify-Spat.R
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
#' This option may be useful when using several `geom_*` and for faceting, see
#' **Examples**.
#'
#' ## `SpatVector`
#' ## `SpatVector` and `SpatGraticule`
#'
#' Return a [`sf`][sf::st_sf] object than can be used with [ggplot2::geom_sf()].
#'
Expand Down Expand Up @@ -168,6 +168,17 @@ fortify.SpatVector <- function(model, data, ...) {
#' @export
#' @name fortify.Spat
fortify.SpatGraticule <- function(model, data, ...) {
# nocov start
tvers <- packageVersion("terra")
if (tvers < "1.8.5") {
msg <- paste(
"Need {.pkg terra} {.strong 1.8.5} or later for ",
"{.fn fortify.SpatGraticule} method. Current {.pkg terra} ",
"version is {.strong {tvers}}"
)
cli::cli_abort(msg)
}
# nocov end
as_sf(terra::vect(model))
}

Expand Down
2 changes: 1 addition & 1 deletion codemeta.json
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@
"SystemRequirements": null
},
"keywords": ["r", "terra", "ggplot-extension", "r-spatial", "rspatial", "cran", "cran-r", "r-package", "rstats", "rstats-package"],
"fileSize": "2399.258KB",
"fileSize": "2399.205KB",
"citation": [
{
"@type": "ScholarlyArticle",
Expand Down
1 change: 1 addition & 0 deletions inst/WORDLIST
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ ebvcuve
fullseq
geom's
geoms
gganimate
ggplot
ggproto
ggspatial
Expand Down
2 changes: 1 addition & 1 deletion man/fortify.Spat.Rd

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

Binary file modified vignettes/aggregate-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified vignettes/articles/che_temp.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified vignettes/contourlines-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified vignettes/faceted-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified vignettes/hypso-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified vignettes/lux_ggplot-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified vignettes/rgb-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified vignettes/spatraster-example1-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 0cbc9f0

Please sign in to comment.