fixErrorsIn {reproducible} | R Documentation |
Fix common errors in GIS layers, using terra
Description
Currently, this only tests for validity of a SpatVect file, then if there is a problem,
it will run terra::makeValid
Usage
fixErrorsIn(
x,
error = NULL,
verbose = getOption("reproducible.verbose"),
fromFnName = ""
)
Arguments
x |
The SpatStat or SpatVect object to try to fix. |
error |
The error message, e.g., coming from |
verbose |
Numeric, -1 silent (where possible), 0 being very quiet,
1 showing more messaging, 2 being more messaging, etc.
Default is 1. Above 3 will output much more information about the internals of
Caching, which may help diagnose Caching challenges. Can set globally with an
option, e.g., |
fromFnName |
The function name that produced the error, e.g., |
Value
An object of the same class as x
, but with some errors fixed via terra::makeValid()
[Package reproducible version 2.1.0 Index]