| required_pkgs.Spat | R Documentation |
Spat* objectsDetermine packages required by Spat* objects.
## S3 method for class 'SpatRaster'
required_pkgs(x, ...)
## S3 method for class 'SpatVector'
required_pkgs(x, ...)
## S3 method for class 'SpatGraticule'
required_pkgs(x, ...)
## S3 method for class 'SpatExtent'
required_pkgs(x, ...)
x |
A |
... |
Ignored by these methods. |
A character string of packages that are required.
Implementation of generics::required_pkgs() method.
generics::required_pkgs().
Other generics methods:
glance.Spat,
tidy.Spat
file_path <- system.file("extdata/cyl_temp.tif", package = "tidyterra")
library(terra)
r <- rast(file_path)
# With rasters
r
required_pkgs(r)
# With vectors
v <- vect(system.file("extdata/cyl.gpkg", package = "tidyterra"))
v
required_pkgs(v)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.