Skip to content

Commit

Permalink
read_RAST(): move ignore.stderr backward in usage
Browse files Browse the repository at this point in the history
  • Loading branch information
florisvdh committed Jun 16, 2024
1 parent c32588d commit f02dd46
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
5 changes: 2 additions & 3 deletions R/rast_link.R
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,9 @@
#

read_RAST <- function(
vname, cat = NULL, NODATA = NULL,
ignore.stderr = get.ignore.stderrOption(), return_format = "terra",
vname, cat = NULL, NODATA = NULL, return_format = "terra",
use_gdal_grass_driver = TRUE, close_OK = return_format == "SGDF",
flags = NULL) {
flags = NULL, ignore.stderr = get.ignore.stderrOption()) {
if (!is.null(cat)) {
if (length(vname) != length(cat)) {
stop("vname and cat not same length")
Expand Down
4 changes: 2 additions & 2 deletions man/readRAST.Rd
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ Read GRASS raster files from GRASS into R \pkg{terra} \code{"SpatRaster"} or \pk


\usage{
read_RAST(vname, cat=NULL, NODATA=NULL, ignore.stderr=get.ignore.stderrOption(),
read_RAST(vname, cat=NULL, NODATA=NULL,
return_format="terra", use_gdal_grass_driver = TRUE, close_OK=return_format=="SGDF",
flags=NULL)
flags=NULL, ignore.stderr=get.ignore.stderrOption())
write_RAST(x, vname, zcol = 1, NODATA=NULL, flags=NULL,
ignore.stderr = get.ignore.stderrOption(), overwrite=FALSE, verbose=TRUE)
}
Expand Down

0 comments on commit f02dd46

Please sign in to comment.