Package: fastfocal
Type: Package
Title: Fast Multiscale Raster Extraction and Moving Window Analysis
        with FFT
Version: 0.1.3
Date: 2025-09-09
Authors@R: 
    c(person(given = c("Ho", "Yi"), family = "Wan",
             role = c("aut", "cre"),
             email = "hoyiwan@gmail.com",
             comment = c(ORCID = "0000-0002-2146-8257")))
Description: Provides fast moving-window ("focal") and buffer-based extraction 
    for raster data using the 'terra' package. Automatically selects between 
    a 'C++' backend (via 'terra') and a Fast Fourier Transform (FFT) backend 
    depending on problem size. The FFT backend supports sum and mean, while 
    other statistics (e.g., median, min, max, standard deviation) are handled 
    by the 'terra' backend. Supports multiple kernel types (e.g., circle, 
    rectangle, gaussian), with NA handling consistent with 'terra' via 
    'na.rm' and 'na.policy'. Operates on 'SpatRaster' objects and returns 
    results with the same geometry.
License: MIT + file LICENSE
Encoding: UTF-8
Depends: R (>= 4.1.0)
Imports: terra, graphics, grDevices, stats
Suggests: testthat (>= 3.0.0), knitr, rmarkdown, dplyr, withr, spelling
VignetteBuilder: knitr
URL: https://hoyiwan.github.io/fastfocal/,
        https://github.com/hoyiwan/fastfocal,
        https://doi.org/10.5281/zenodo.17074691
BugReports: https://github.com/hoyiwan/fastfocal/issues
Config/testthat/edition: 3
RoxygenNote: 7.3.2
Language: en-US
NeedsCompilation: no
Packaged: 2025-09-18 18:34:43 UTC; hoyiw
Author: Ho Yi Wan [aut, cre] (ORCID: <https://orcid.org/0000-0002-2146-8257>)
Maintainer: Ho Yi Wan <hoyiwan@gmail.com>
Repository: CRAN
Date/Publication: 2025-09-23 10:50:02 UTC
Built: R 4.6.0; ; 2026-04-26 17:54:10 UTC; unix
