Skip to content

Lightweight Well-Known Geometry Parsing

19packages dependsuggested by 12
3.1Mdownloads / year
92.0%test coverage
8/13flavors OK

Overview

About

Provides a minimal R and C++ API for parsing well-known binary and well-known text representation of geometries to and from R-native formats. Well-known binary is compact and fast to parse; well-known text is human-readable and is useful for writing tests. These formats are useful in R only if the information they contain can be accessed in R, for which high-performance functions are provided here.

Changes in 0.9.5
  • Ensure package tests pass against forthcoming vctrs (#231).
  • Avoid memcpy() calls for zero size copies (@MichaelChirico, #227, #228).

From NEWS.md in the release

Install

Health

CRAN checks
5NOTE8OK
Check messages
NOTER code for possible problemsr-devel-linux-x86_64-debian-clang, r-devel-linux-x86_64-debian-gcc, r-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc, r-devel-windows-x86_64
Found calls to structure() using deprecated special names:
  wk/tests/testthat/test-grd-extract.R (.Dim: 1)
  wk/tests/testthat/test-grd-plot.R (.Dim: 1)
  wk/tests/testthat/test-grd-subset.R (.Dim: 1)
'.Dim' should be changed to 'dim'.
Additional issues

CRAN check page ↗

Slowest check: 3.8 min · r-devel-windows-x86_64
Status changes
  • NOTE8 OK, 5 NOTENow
  • NOTE11 OK, 2 NOTE2026-07-16
  • OK14 OK2026-03-10
Advisories

none known

Documentation

In release 0.9.5
READMEYes · 340 wordsVignettesNoNEWSYes · 100% structured · mentions 0.9.5Citation fileNoWebsiteYes · pkgdown

The repository also keeps web-only articles.

Help pages
60 (1 internal)includes a package overview page
Examples that run
100%42 run in a plain check
Exported functions with examples
69%
Documented parameters
76%
Return-value docs
71%
Help pages citing references
0%

Downloads

3.1M
CRAN downloads in the past year
Rank #229 · ~8.5K/day · ~258.4K/mo
Daily download trend is not available in this view yet.
201.3K30 days
595.7K90 days
3.1M1 year
Compare downloads with other packages →
Also on44.2K r2u15 autocran101.3K conda_forge1K c2d4u

Repository

52Stars
8Forks
12Open issues
1Open PRs
18Releases
1,219Commits
10Commit identities
1,219 commits · Last activity 2025-12-21 · 0% stars, 30d · The default branch showed an older version (0.9.4.9000) than CRAN on 2026-10-11
Responsiveness
How these are sampled
PRs merged (all time)
99%
Median days to close, 50 most recently updated closed issues
38
Median days to close, 50 most recently updated closed PRs
0

Stars over time

2025-07-04 · 482026-08-11 · 52
PracticesBeta

11 development-tooling and community-health practices detected across 6 families in the upstream repository

Checks run against github.com/paleolimbot/wk on 2026-10-11.

Continuous integration (2)
GitHub ActionsR CMD check workflow

The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel

Docs source (4)
README.Rmdpkgdown

GitHub Pages site last deployed 2025-12-21 · The repository has a site deploy workflow

pkgdown site last built 2025-12-16, before release 0.9.5 (2025-12-18)

Coverage (2)
Coverage reporting.covrignore
Reproducibility and dev environment (1)
data-raw/
Show all practicesHide 2 practices
CRAN release process (1)
cran-comments.md
Lint, format, editor (1)
RStudio project
How this is detected·Detection ruleset v3 (2026-09-26)

Dependencies

Declared dependencies
5 external dependencies (excludes base and recommended)

Installing wk adds no packages beyond those that come with R.

Depends (1)
R >= 2.10
Imports (0)
none
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
19direct
1,183indirect
Imports 19 · LinkingTo 4
Suggested by 12
Show all 31 packagesHide all 31 packages
Depends, Imports or LinkingTo, most downloaded first
Suggests, most downloaded first

Datasets

People & History

People (3)
Author, Maintainer since 0.2.1 (2020)
Contributor · added in 0.8.0
Listed in earlier versions (2)
Refractions Research Inc.
no longer listed · 0.2.1 to 0.3.0
Vivid Solutions Inc.
no longer listed · 0.2.1 to 0.3.0
Releases (21)

Pick two releases to compare their code metrics.

  • R
    R 4.6.0 released · 2026-04-24
  • 0.9.5Latest
    record
    2025-12-18 · current release · diff ↗
  • R
    R 4.5.0 released · 2025-04-11
  • 0.9.4
    record
    2024-10-11 · diff ↗
  • 0.9.3
    record
    2024-09-06 · diff ↗
  • 0.9.2
    record
    2024-07-09 · diff ↗
  • R
    R 4.4.0 released · 2024-04-24
  • 0.9.1
    record
    2023-11-29 · diff ↗
  • 0.9.0
    record
    2023-10-22 · diff ↗
  • 0.8.0
    record
    2023-08-25 · diff ↗ ·
    added 7 exports
    wk_coords<-, wk_clockwise, wk_counterclockwise, wk_orient, wk_orient_filter, wk_trans_explicit, wkb_to_hex
  • 0.7.3
    record
    2023-05-07 · diff ↗
  • R
    R 4.3.0 released · 2023-04-21
  • 0.7.2
    record
    2023-03-17 · diff ↗
  • 0.7.1
    record
    2022-12-09 · diff ↗
  • 0.7.0
    record
    2022-10-13 · diff ↗ ·
    removed 1 export
    wk_chunk_map_feature
    added 42 exports
    as_grd_rct, as_grd_xy, crc_center, crc_r, crc_x, crc_y, grd, grd_cell, grd_cell_range, grd_cell_rct, grd_cell_xy, grd_crop, grd_data_extract, grd_data_subset, grd_extend, grd_extract, grd_extract_nearest, grd_rct, grd_snap_next, grd_snap_previous, grd_subset, grd_summary, grd_tile, grd_tile_summary, grd_tile_template, grd_xy, new_wk_grd, rct_contains, rct_height, rct_intersection and 12 more
  • R
    R 4.2.0 released · 2022-04-22
Show 12 earlier eventsHide 12 earlier events
  • 0.6.0
    record
    2022-01-03 · diff ↗ ·
    removed 3 exports
    wkb_problems, wkt_format, wkt_problems
    added 15 exports
    wk_is_geodesic<-, is_handleable, wk_chunk_map_feature, wk_chunk_strategy_coordinates, wk_chunk_strategy_feature, wk_chunk_strategy_single, wk_crs_longlat, wk_crs_proj_definition, wk_envelope, wk_envelope_handler, wk_geodesic_inherit, wk_handle_slice, wk_is_geodesic, wk_is_geodesic_output, wk_set_geodesic
  • 0.5.0
    record
    2021-07-13 · diff ↗ ·
    added 31 exports
    as_wk_trans, new_wk_trans, wk_affine_compose, wk_affine_fit, wk_affine_identity, wk_affine_invert, wk_affine_rescale, wk_affine_rotate, wk_affine_scale, wk_affine_translate, wk_collection, wk_collection_filter, wk_coords, wk_drop_m, wk_drop_z, wk_flatten, wk_flatten_filter, wk_linestring, wk_linestring_filter, wk_plot, wk_polygon, wk_polygon_filter, wk_set_m, wk_set_z, wk_trans_affine, wk_trans_inverse, wk_trans_set, wk_transform, wk_transform_filter, wk_vertex_filter and 1 more
  • R
    R 4.1.0 released · 2021-05-18
  • 0.4.1
    record
    2021-03-16 · diff ↗
  • 0.4.0
    record
    2021-03-06 · diff ↗ ·
    removed 16 exports
    as_wksxp, is_wk_wksxp, new_wk_wksxp, parse_wksxp, validate_wk_wksxp, vec_cast.wk_wksxp, vec_ptype2.wk_wksxp, wkb_format, wkb_translate_wksxp, wksxp, wksxp_format, wksxp_problems, wksxp_translate_wkb, wksxp_translate_wksxp, wksxp_translate_wkt, wkt_translate_wksxp
    added 48 exports
    wk_crs<-, as_crc, as_wk_handler, crc, handle_wkt_without_vector_size, is_wk_handler, new_wk_crc, new_wk_handler, sfc_writer, vec_cast.wk_crc, vec_cast.wk_rct, vec_ptype2.wk_crc, vec_ptype2.wk_rct, wk_bbox, wk_bbox_handler, wk_count, wk_count_handler, wk_crs, wk_crs_auto, wk_crs_auto_value, wk_crs_equal, wk_crs_equal_generic, wk_crs_inherit, wk_crs_output, wk_debug, wk_debug_filter, wk_format, wk_geometry_type, wk_geometry_type_label, wk_handle and 18 more
  • 0.3.4
    record
    2021-01-16 · diff ↗
  • 0.3.3
    record
    2020-10-13 · diff ↗ ·
    added 25 exports
    as_rct, as_xy, new_wk_rct, new_wk_xy, new_wk_xym, new_wk_xyz, new_wk_xyzm, rct, validate_wk_xy, validate_wk_xym, validate_wk_xyz, validate_wk_xyzm, vec_cast.wk_xy, vec_cast.wk_xym, vec_cast.wk_xyz, vec_cast.wk_xyzm, vec_ptype2.wk_xy, vec_ptype2.wk_xym, vec_ptype2.wk_xyz, vec_ptype2.wk_xyzm, xy, xy_dims, xym, xyz, xyzm
  • 0.3.2
    record
    2020-08-03 · diff ↗
  • 0.3.1
    record
    2020-07-21 · diff ↗ ·
    removed 40 exports
    coords_linestring_translate_wkb, coords_linestring_translate_wksxp, coords_linestring_translate_wkt, coords_point_translate_wkb, coords_point_translate_wksxp, coords_point_translate_wkt, coords_polygon_translate_wkb, coords_polygon_translate_wksxp, coords_polygon_translate_wkt, wk_geometry_type, wk_geometry_type_id, wkb_coords, wkb_debug, wkb_draw_lines, wkb_draw_points, wkb_draw_polypath, wkb_feature_ranges, wkb_meta, wkb_plot_new, wkb_ranges, wksxp_coords, wksxp_debug, wksxp_draw_lines, wksxp_draw_points, wksxp_draw_polypath, wksxp_feature_ranges, wksxp_meta, wksxp_plot_new, wksxp_ranges, wkt_coords and 10 more
  • 0.3.0
    record
    2020-06-21 · diff ↗ ·
    added 21 exports
    coords_linestring_translate_wkb, coords_linestring_translate_wksxp, coords_linestring_translate_wkt, coords_point_translate_wkb, coords_point_translate_wksxp, coords_point_translate_wkt, coords_polygon_translate_wkb, coords_polygon_translate_wksxp, coords_polygon_translate_wkt, is_wk_wkb, is_wk_wksxp, is_wk_wkt, parse_wkb, parse_wksxp, parse_wkt, vec_cast.wk_wkb, vec_cast.wk_wksxp, vec_cast.wk_wkt, vec_ptype2.wk_wkb, vec_ptype2.wk_wksxp, vec_ptype2.wk_wkt
  • 0.2.1
    record
    2020-05-11
  • R
    R 4.0.0 released · 2020-04-24

Package metadata

First published
2020-05-11
Total releases
21 / 6 yrs
License
MIT + file LICENSE OSI · relicensed from LGPL (>= 2.1) in 0.3.1
Minimum R
≥ 2.10
Bundled data
791 KB / 3 files
Download size
1.0 MB
Appears in task views

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("wk")
Dunnington, D., North, A., & Pebesma, E. (2025). wk: Lightweight Well-Known Geometry Parsing (Version 0.9.5) [Computer software]. https://doi.org/10.32614/CRAN.package.wk

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.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for wk version 0.9.5 [Data set]. HJJB, LLC. Data release v2026-10-18. https://doi.org/10.5281/zenodo.21843040

From data release v2026-10-18, which the citation names so these numbers can be found later. More on citing and the projects behind them.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy