Calculate Area of Triangles and Polygons
Overview
Calculate the area of triangles and polygons using the shoelace formula. Area may be signed, taking into account path orientation, or unsigned, ignoring path orientation. The shoelace formula is described at https://en.wikipedia.org/wiki/Shoelace_formula.
- Improved C++ sum method to match benchmarks (from 2023 advent of code Day 18, see https://github.com/hypertidy/area/issues/4). Thanks to Tan Ho, Jonathan Carroll, and Rich FitzJohn.
From NEWS.md in the release
Install
Health
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK14 OK2026-03-10
Documentation
- Help pages
- 4 (1 internal)includes a package overview page
- Examples that run
- 100%3 run in a plain check
- Exported functions with examples
- 100%
- Documented parameters
- 100%
- Return-value docs
- 100%
- Help pages citing references
- 0%
Downloads
Repository
- PRs merged (all time)
- 100%
- Median days to close, 50 most recently updated closed issues
- 1
- Median days to close, 50 most recently updated closed PRs
- 0
Stars over time
Issues over time
10 development-tooling and community-health practices detected across 7 families in the upstream repository
Checks run against github.com/hypertidy/area on 2026-10-18.
The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel
GitHub Pages site last deployed 2026-01-27 · The repository has a site deploy workflow
Show all practicesHide 3 practices
Dependencies
Installing area adds 1 package (0 with compiled code, 298 KB of source tarballs). Heaviest: cpp11 298 KB.
Code & Tests
Datasets
People & History
Pick two releases to compare their code metrics.
- RR 4.6.0 released · 2026-04-24
- RR 4.5.0 released · 2025-04-11
- RR 4.4.0 released · 2024-04-24
- 0.2.0Latest
- RR 4.3.0 released · 2023-04-21
- 0.1.02023-04-04
- RR 4.2.0 released · 2022-04-22
Package metadata
- First published
- 2023-04-04
- Total releases
- 2 / 3 yrs
- License
- GPL-3 OSI
- Minimum R
- ≥ 4.1.0
- Bundled data
- 66 KB / 3 files
- Download size
- 89 KB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("area")This package has no citation file, so citation() returns this entry built from DESCRIPTION.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-21, which the citation names so these numbers can be found later. More on citing and the projects behind them.