rcrisp 1.0.0 - 2026-10-20
Added
- A definition of “riverside urban areas” was added in the README.
- The practical usefulness of the morphological approach was explained in the README.
- Test coverage of the
osmandaoimodules was increased. - The “Getting started” vignette was updated with a “Why is consistent delineation important?” section clarifying the problem
rcrispis meant to solve in contrast with alternative approaches. - A note was added in the “Getting started” vignette stating that the workflow can be replicated for any city and river where sufficient data are available.
- Added an algorithm performance test to verify that the full pipeline completes successfully on real-world example data and performs within reasonable bounds.
- Added a test demonstrating that
reproject()yields equivalent results regardless of whether input data are curvilinear (WGS84) or rectilinear (projected). - Distance input preprocessing is now handled by the
preprocess_distance()function. This function returns a plain numeric in meters, regardless of whether the input is provided as aunitsobject, a plain numeric or another vector-like class with numericstorage.mode. -
geom_delineation()was added as aggplot2-based alternative to theplot()method, returning a list ofgeom_sf()layers that can be added to aggplotobject with+. -
print()andsummary()methods were added fordelineationobjects.print()gives a compact overview of present layers and their feature counts.summary()additionally reports areas (sqkm) for delineation layers and lengths (km) forriver_centerline. - A
plot()method was created for objects of classdelineation. - Context-specific messages are now issued in
get_river_aoi(),delineate_corridor(), anddelineate()when lat/lon input is reprojected for buffering, and indelineate()when no CRS is provided and a UTM zone is auto-selected. - Tests were added to
delineate_corridor(),delineate_segments(), anddelineate_riverspace()to verify that geographic (lat/lon) CRS input raises an informative error. - The Rbanism community badge was added in the README.
-
delineate()now errors early when fewer than two river crossings are found. - rOpenSci reviewers were acknowledged in the package metadata.
- Package logo was added.
- A JOSS paper describing the package was added in
inst/joss/, along with a GitHub Actions workflow to build a draft PDF.
Fixed
- Assertion on CRS input was removed from
get_osm_streets(). CRS input is now checked inas_crs()as in the otherget_osm_*()functions. - Incorrect CRS was fixed in osmdata tests.
- Missing parenthesis was added in warning text in
check_cache(). - Vignette pre-compilation was updated so that srr tags dropped by
knitr::knit()are reinserted into the vignettes. Affected vignettes were also recompiled. - The input
dem_sourceinget_dem()was made case insensitive. - Fixed typos in test statements.
- Corrected documentation for
reproject(): thecrsparameter no longer (incorrectly) listslogicalas an accepted type.crsaccepts numeric/integer, character (e.g. “EPSG:4326”) or ansf::crsobject; passingTRUE/FALSEwill fail. - Vignette pre-compilation was updated so that srr tags dropped by
knitr::knit()are reinserted into the vignettes. Affected vignettes were also recompiled. - Documentation of return values in
clear_cache()anddelineate()were made factually consistent with the code.
Changed
- The getting started vignette was updated to use
delineate_city_river()instead of the olddelineate(city_name, river_name, ...)call. - The corridor delineation vignette was updated to use
delineate_city_river()instead of the olddelineate(city_name, river_name, ...)call, and to reflect the currentcorridor_initparameter (replacing the oldmethodargument). The description of the return value was updated to mention thedelineationS3 class and its full set of layers. - The corridor segmentation vignette was updated to accurately describe the default behaviour of
delineate(), to referencedelineate_city_river(), and to remove an unusedget_dem_example_data()call from the setup chunk. - All user-facing
stop(),warning(), andmessage()calls have been migrated tocliequivalents (cli_abort(),cli_warn(),cli_inform()) for consistent output. - The
aoi_buildingsavailability check indelineate()was moved earlier to fail before any computation begins. - The workflow section of the getting started vignette was updated to reflect the latest package design with the five-step workflow: define parameters, acquire data, run delineation, visualize and validate, and export results.
- The README was updated with a link to the getting started vignette when discussing the problem of consistent delineation.
- The OSM retrieval vignette was updated to use the redesigned main functions. UTM CRS is retrieved now implicitly as part of
define_aoi(). - Attach-time
check_cache()was moved behindinteractive(). -
get_osmdata()was renamed toget_osm()and all other uses ofosmdataandosm_datain object and function names have been consistently renamed toosmthroughout the package to avoid confusions with theosmdatapackage. - The workflow of
delineate()was refactored into four composable functions to reduce parameter complexity and improve step-by-step control:-
define_aoi()(new): defines the area of interest and all delineation parameters (CRS, buffer sizes, corridor initialisation method) from a city and river name. -
get_osmdata()andget_dem()was adapted to accept anaoiobject returned bydefine_aoi()instead of individual parameters. -
delineate(): now accepts theaoiobject, OSM data, and DEM as separate inputs, with a reduced parameter signature.
-
-
delineate_city_river()(new): convenience wrapper that runs the full workflow from city and river name with default parameters. -
delineate()returns now an S3 object of classdelineation. -
as_network()now checks for NAs in non-geometry columns and issues an error, proceeds with a warning, imputes NA values, or ignores them, as specified by the user with a newna_actionparameter.
rcrisp 0.3.0 - 2025-10-13
CRAN release: 2025-10-14
Added
- Overall workflow was documented in a new vignette and the package README
- Badges to Research Software Directory and R-universe were added
- Corridors are also allowed to be multipolygons when delineating segments
- Badge with Status at rOpenSci Software Peer Review was added
Fixed
- Exact matches in
match_osm_name()are returned before partial matches. - Bug returning county boundary instead of city boundary was fixed.
- Bug for river with no crossings was fixed. Delineation fails with informative error.
- Code chunk with OSM data retrieval was disabled in getting started vignette.
-
get_osm_buildings()does not error when given bounding box as input. - STAC asset URL retrieval test fails gracefully on unsuccessful HTTP request.
- Suppress warning in wrong city name test.
rcrisp 0.2.0 - 2025-08-21
CRAN release: 2025-08-21
Added
- Package-level documentation has been added.
- Assertions using the
checkmatepackage were added to input parameters throughout the package. - Examples were expanded to demonstrates the use of all parameters.
- Delineated valley has been added to the
bucharest_dambovitaexample package data.
Fixed
- Classes of input parameters and return values were specified.
-
get_osm_example_data()andget_dem_example_data()fail gracefully in examples, vignettes and tests, that is, return a message and NULL, if internet resource is not available.
Changed
- Optimised OSM river retrieval by matching the river to an OSM relation ID via Nominatim and fetching by ID, instead of querying all waterways within a bounding box and filtering by name.
- Replaced
sapply()withvapply()throughout the package for improved type safety. - Updated package metadata in
DESCRIPTIONandcodemeta.json - Organized function reference page into meaningful sections.
Version 0.1.4 - 2025-07-04
CRAN release: 2025-07-04
Added
- The CRAN badge has been added to the README.
- DOI is added to CITATION.cff, DESCRIPTION and README (badge)
Fixed
-
check_cache()is only run when the package is attached, not when it is loaded to avoid namespace issues.
Version 0.1.2 - 2025-06-26
Changed
- The default cache directory has been moved to the path given by
tools::R_user_dir(). Checks for the cache directory size and outdated files are now included on package load. - Tests in
test-delineate.Randtest-osmdata.Rhave been partly rewritten, so that they use less resources and they complete in a reasonable amount of time.
