Skip to content

Commit

Permalink
fix doc #20
Browse files Browse the repository at this point in the history
  • Loading branch information
mdsumner committed Aug 5, 2021
1 parent 5588c06 commit 640b441
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 10 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Package: lazyraster
Version: 0.5.0.9008
Version: 0.5.0.9009
Title: Generate Raster Data Lazily from 'GDAL'
Description: Read raster data at a specified resolution on-demand via 'GDAL'
(the Geospatial Data Abstraction Library <https://gdal.org/>). Augments the
Expand Down
3 changes: 0 additions & 3 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,8 @@ S3method(quadmesh,lazyraster)
export(as_raster)
export(crop)
export(lazyraster)
export(plot)
export(plot.lazyraster)
export(quadmesh)
importFrom(grDevices,dev.size)
importFrom(graphics,plot)
importFrom(methods,setOldClass)
importFrom(quadmesh,quadmesh)
importFrom(raster,crop)
Expand Down
2 changes: 2 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# lazyraster dev

* Fixed plot method documentation, thanks to @brownag https://github.com/hypertidy/lazyraster/issues/20.

* lazyraster now uses `vapour_warp_raster()` to do the work, no more need for RasterIO.

* Speed up `as_raster()` by avoiding unlist().
Expand Down
6 changes: 4 additions & 2 deletions R/00lazy-S4-methods.R
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,12 @@ lazycrop <- function(...) {
#' @param y an object with extent (for crop)
#' @param ... arguments passed to underlying raster function
#' @seealso [raster::raster()], [raster::extent()], [raster::crop()]
#' @aliases extent crop
#' @rdname lazyraster-raster-S4
#' @aliases extent crop crop,lazyraster-method
#' @name lazyraster-raster-S4
#' @importFrom methods setOldClass
#' @method crop lazyraster
#' @method raster lazyraster
#' @method extent lazyraster
#' @return [lazyraster()] and [crop()] return a lazyraster object, [extent()] returns
#' a regular raster extent
#' @examples
Expand Down
7 changes: 3 additions & 4 deletions R/lazy-methods.R
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,10 @@ format.lazyraster <- function(x, ...) {
#' @param y ignored
#' @param ... passed to [raster::plot]
#' @importFrom raster plot
#' @importFrom graphics plot
#' @export plot
#' @rawNamespace S3method(plot,lazyraster)
#' @usage \method{plot}{lazyraster}(x, y, ...)
#' @method plot lazyraster
#' @name lazyraster-methods
#' @aliases plot
#' @rdname lazyraster-methods
#' @export
plot.lazyraster <- function(x, y, ...) {
raster::plot(as_raster(x), ...)
Expand Down
1 change: 1 addition & 0 deletions man/lazyraster-methods.Rd

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

1 change: 1 addition & 0 deletions man/lazyraster-raster-S4.Rd

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

0 comments on commit 640b441

Please sign in to comment.