{
  "_id": "6a378b213efcd9bda441a33f",
  "Package": "csquares",
  "Title": "Concise Spatial Query and Representation System (c-Squares)",
  "Version": "0.1.0.0001",
  "Authors@R": "person(\"Pepijn\", \"de Vries\", role = c(\"aut\", \"cre\"),\nemail = \"pepijn.devries@outlook.com\",\ncomment = c(ORCID = \"0000-0002-7961-6646\"))",
  "Author": "Pepijn de Vries [aut, cre] (0000-0002-7961-6646)",
  "Description": "Encode and decode c-squares, from and to simple feature\n(sf) or spatiotemporal arrays (stars) objects. Use c-squares\ncodes to quickly join or query spatial data.",
  "License": "GPL (>= 3)",
  "Encoding": "UTF-8",
  "Roxygen": "list(markdown = TRUE)",
  "RoxygenNote": "7.2.3",
  "LazyData": "true",
  "Collate": "'helpers.R' 'as_csquares.R' 'as_stars.R' 'csquares-package.R'\n'csquares_methods.R' 'drop.R' 'expand.R' 'ices.R' 'in.R'\n'init.R' 'joins_tidy.R' 'new_csquares.R' 'orca.R' 'resample.R'\n'tidyverse.R' 'st_as_sf.R' 'validate.R' 'vctrs.R'",
  "Config/testthat/edition": "3",
  "URL": "https://pepijn-devries.github.io/csquares/,\nhttps://github.com/pepijn-devries/csquares/",
  "BugReports": "https://github.com/pepijn-devries/csquares/issues",
  "VignetteBuilder": "knitr",
  "Config/pak/sysreqs": "libabsl-dev cmake libgdal-dev gdal-bin libgeos-dev\nlibicu-dev libssl-dev libproj-dev libsqlite3-dev\nlibudunits2-dev",
  "Repository": "https://pepijn-devries.r-universe.dev",
  "Date/Publication": "2026-01-22 14:47:00 UTC",
  "RemoteUrl": "https://github.com/pepijn-devries/csquares",
  "RemoteRef": "main",
  "RemoteSha": "b11b031d8aee76917450c25ee03edef57d577ae8",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-06-21 06:52:50 UTC",
    "User": "root"
  },
  "Maintainer": "Pepijn de Vries <pepijn.devries@outlook.com>",
  "MD5sum": "56f044de1431ebf1073d0c0e7d70052c",
  "_user": "pepijn-devries",
  "_type": "src",
  "_file": "csquares_0.1.0.0001.tar.gz",
  "_fileid": "2618514ee3eab515ad9cc2ae6533634890d76a3e2acd95ee48fe5a8d81b2b8b6",
  "_filesize": 1181161,
  "_sha256": "2618514ee3eab515ad9cc2ae6533634890d76a3e2acd95ee48fe5a8d81b2b8b6",
  "_created": "2026-06-21T06:52:50.000Z",
  "_published": "2026-06-21T06:56:33.107Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 82548912588,
      "time": 187,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7772764199"
    },
    {
      "job": 82548912592,
      "time": 176,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7772762719"
    },
    {
      "job": 82548912577,
      "time": 97,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7772752456"
    },
    {
      "job": 82548912578,
      "time": 104,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7772753187"
    },
    {
      "job": 82548653784,
      "time": 232,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7772739601"
    },
    {
      "job": 82548912580,
      "time": 137,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7772757245"
    },
    {
      "job": 82548912603,
      "time": 133,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7772756914"
    },
    {
      "job": 82548912589,
      "time": 146,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7772758702"
    },
    {
      "job": 82548912593,
      "time": 120,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7772755352"
    }
  ],
  "_buildurl": "https://github.com/r-universe/pepijn-devries/actions/runs/27896400660",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/pepijn-devries/csquares",
  "_commit": {
    "id": "b11b031d8aee76917450c25ee03edef57d577ae8",
    "author": "Pepijn de Vries <pepijn-devries@users.noreply.github.com>",
    "committer": "GitHub <noreply@github.com>",
    "message": "Work in progress (#37)\n\n* version 0.0.7 (#26) (#29)\n\n* version bump\r\n\r\n* version bump (#14)\r\n\r\n\r\n\r\n* Wild cards (#15)\r\n\r\n* added function to expand wildcards + separated validity check from coord generation\r\n\r\n* Implemented wildcards and several minor corrections/additions see https://github.com/pepijn-devries/csquares/issues/4\r\n\r\n---------\r\n\r\n\r\n\r\n* Fix in test\r\n\r\n* sync with main (#19)\r\n\r\n* Work in progress (#17)\r\n\r\n* version bump\r\n\r\n* version bump (#14)\r\n\r\n\r\n\r\n* Wild cards (#15)\r\n\r\n* added function to expand wildcards + separated validity check from coord generation\r\n\r\n* Implemented wildcards and several minor corrections/additions see https://github.com/pepijn-devries/csquares/issues/4\r\n\r\n---------\r\n\r\n\r\n\r\n* Fix in test\r\n\r\n---------\r\n\r\n\r\n\r\n* Sync with Work in progress (#18)\r\n\r\n* version bump\r\n\r\n* version bump (#14)\r\n\r\n\r\n\r\n* Wild cards (#15)\r\n\r\n* added function to expand wildcards + separated validity check from coord generation\r\n\r\n* Implemented wildcards and several minor corrections/additions see https://github.com/pepijn-devries/csquares/issues/4\r\n\r\n---------\r\n\r\n\r\n\r\n* Fix in test\r\n\r\n---------\r\n\r\n\r\n\r\n* Rename csquares-package.r to csquares-package.R\r\n\r\n---------\r\n\r\n\r\n\r\n* Some minor corrections in the implementation of s3 generics\r\n\r\n* Improved base and tidyverse impementation of s3 generics\r\n\r\n* added vignettes; added tidy join support; better vctrs support; minor fixes\r\n\r\n* fixed error in merge\r\n\r\n* URL fix\r\n\r\n---------\r\n\r\nCo-authored-by: pepijn-devries <pepijn.devries@wur.nl>\n\n* improved test coverage + several fixes\n\n* Improved test coverage + minor fixes\n\n* fixes to pass CRAN checks and version bump\n\n* Suppress check of some examples to reduce check time on CRAN\n\n* added favicons\n\n* Added ref to Rees (2015)\n\n---------\n\nCo-authored-by: pepijn-devries <pepijn.devries@wur.nl>",
    "time": 1769093220
  },
  "_maintainer": {
    "name": "Pepijn de Vries",
    "email": "pepijn.devries@outlook.com",
    "login": "pepijn-devries",
    "linkedin": "in/pepijn-de-vries-2509b664",
    "orcid": "0000-0002-7961-6646",
    "description": "",
    "uuid": 13707449
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 4.1.0",
      "role": "Depends"
    },
    {
      "package": "dplyr",
      "role": "Imports"
    },
    {
      "package": "methods",
      "role": "Imports"
    },
    {
      "package": "purrr",
      "role": "Imports"
    },
    {
      "package": "rlang",
      "role": "Imports"
    },
    {
      "package": "sf",
      "role": "Imports"
    },
    {
      "package": "stars",
      "role": "Imports"
    },
    {
      "package": "stringr",
      "role": "Imports"
    },
    {
      "package": "tidyr",
      "role": "Imports"
    },
    {
      "package": "tidyselect",
      "role": "Imports"
    },
    {
      "package": "vctrs",
      "role": "Imports"
    },
    {
      "package": "curl",
      "role": "Suggests"
    },
    {
      "package": "DiagrammeR",
      "role": "Suggests"
    },
    {
      "package": "DiagrammeRsvg",
      "role": "Suggests"
    },
    {
      "package": "ggplot2",
      "role": "Suggests"
    },
    {
      "package": "htmltools",
      "role": "Suggests"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "lifecycle",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "rnaturalearth",
      "role": "Suggests"
    },
    {
      "package": "rnaturalearthdata",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "version": ">= 3.0.0",
      "role": "Suggests"
    },
    {
      "package": "xml2",
      "role": "Suggests"
    }
  ],
  "_owner": "pepijn-devries",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2025-36",
      "n": 1
    },
    {
      "week": "2026-04",
      "n": 1
    }
  ],
  "_tags": [],
  "_topics": [
    "spatial"
  ],
  "_stars": 2,
  "_contributors": [
    {
      "user": "pepijn-devries",
      "count": 29,
      "uuid": 13707449
    }
  ],
  "_userbio": {
    "uuid": 13707449,
    "type": "user",
    "name": "Pepijn de Vries",
    "followers": 25
  },
  "_downloads": {
    "count": 246,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/csquares"
  },
  "_devurl": "https://github.com/pepijn-devries/csquares",
  "_pkgdown": "https://pepijn-devries.github.io/csquares/",
  "_searchresults": 27,
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/csquares.html",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "manual.pdf"
  ],
  "_homeurl": "https://github.com/pepijn-devries/csquares",
  "_realowner": "pepijn-devries",
  "_cranurl": true,
  "_releases": [
    {
      "version": "0.0.3",
      "date": "2024-06-24"
    },
    {
      "version": "0.0.5",
      "date": "2024-07-05"
    },
    {
      "version": "0.0.6",
      "date": "2024-07-19"
    },
    {
      "version": "0.0.7",
      "date": "2024-07-25"
    },
    {
      "version": "0.1.0",
      "date": "2024-08-29"
    }
  ],
  "_exports": [
    "as_csquares",
    "drop_csquares",
    "expand_wildcards",
    "format.csquares",
    "ices_centroids",
    "ices_columns",
    "ices_from_csquares",
    "ices_rectangles",
    "ices_to_csquares",
    "in_csquares",
    "new_csquares",
    "resample_csquares",
    "st_as_sf.csquares",
    "st_as_sfc.csquares",
    "st_as_stars.csquares",
    "validate_csquares",
    "vec_cast.csquares",
    "vec_ptype2.csquares"
  ],
  "_datasets": [
    {
      "name": "orca",
      "title": "Killer whale realm",
      "object": "orca",
      "class": [
        "data.frame"
      ],
      "fields": [
        "csquares",
        "orcinus_orca"
      ],
      "rows": 2058,
      "table": true,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "as_csquares",
      "title": "Convert lon-lat coordinates into c-square codes",
      "topics": [
        "as_csquares",
        "as_csquares.character",
        "as_csquares.data.frame",
        "as_csquares.default",
        "as_csquares.numeric",
        "as_csquares.sf",
        "as_csquares.sfc",
        "as_csquares.stars"
      ]
    },
    {
      "page": "drop_csquares",
      "title": "Drop c-square information from object",
      "topics": [
        "drop_csquares"
      ]
    },
    {
      "page": "expand_wildcards",
      "title": "Expand c-squares with wildcards to all matching c-squares",
      "topics": [
        "expand_wildcards"
      ]
    },
    {
      "page": "csquares-methods",
      "title": "Basic csquares methods",
      "topics": [
        "$.csquares",
        "$<-.csquares",
        "as.character.csquares",
        "as.data.frame.csquares",
        "c.csquares",
        "cbind.csquares",
        "format.csquares",
        "merge.csquares",
        "names<-.csquares",
        "print.csquares",
        "rbind.csquares",
        "summary.csquares",
        "[.csquares",
        "[<-.csquares",
        "[[.csquares",
        "[[<-.csquares"
      ]
    },
    {
      "page": "ices_geom",
      "title": "Get ICES geometries",
      "topics": [
        "ices_centroids",
        "ices_from_csquares",
        "ices_rectangles",
        "ices_to_csquares"
      ]
    },
    {
      "page": "ices_columns",
      "title": "Valid ICES rectangle columns",
      "topics": [
        "ices_columns"
      ]
    },
    {
      "page": "in_csquares",
      "title": "Match c-squares against other c-squares (with wildcards)",
      "topics": [
        "in_csquares"
      ]
    },
    {
      "page": "tidyjoins",
      "title": "Join 'csquares' objects using tidyverse conventions",
      "topics": [
        "anti_join.csquares",
        "full_join.csquares",
        "inner_join.csquares",
        "join",
        "left_join.csquares",
        "right_join.csquares",
        "semi_join.csquares",
        "st_join.csquares"
      ]
    },
    {
      "page": "new_csquares",
      "title": "Create a c-squares raster from a bounding box",
      "topics": [
        "new_csquares"
      ]
    },
    {
      "page": "orca",
      "title": "Killer whale realm",
      "topics": [
        "orca"
      ]
    },
    {
      "page": "resample_csquares",
      "title": "Resample csquares to a different resolution",
      "topics": [
        "resample_csquares"
      ]
    },
    {
      "page": "st_as_sf",
      "title": "Create a simple features object from c-squares",
      "topics": [
        "st_as_sf",
        "st_as_sf.csquares",
        "st_as_sfc",
        "st_as_sfc.csquares"
      ]
    },
    {
      "page": "st_as_stars.csquares",
      "title": "Coerce csqaures object into a stars object",
      "topics": [
        "st_as_stars.csquares"
      ]
    },
    {
      "page": "tidyverse",
      "title": "Tidyverse methods for csquares objects (drop the 'csquares'-suffix)",
      "topics": [
        "arrange.csquares",
        "as_tibble.csquares",
        "distinct.csquares",
        "drop_na.csquares",
        "filter.csquares",
        "group_by.csquares",
        "group_split.csquares",
        "mutate.csquares",
        "nest.csquares",
        "pivot_longer.csquares",
        "pivot_wider.csquares",
        "rename.csquares",
        "rename_with.csquares",
        "rowwise.csquares",
        "select.csquares",
        "slice.csquares",
        "summarise.csquares",
        "tidyverse",
        "ungroup.csquares",
        "unite.csquares",
        "unnest.csquares",
        "unnest.csquares_nested"
      ]
    },
    {
      "page": "validate_csquares",
      "title": "Test if a csquares object is valid",
      "topics": [
        "validate_csquares"
      ]
    },
    {
      "page": "vctrs",
      "title": "vctrs methods for csquares objects",
      "topics": [
        "vctrs",
        "vec_cast.csquares",
        "vec_cast.csquares.character",
        "vec_cast.csquares.csquares",
        "vec_cast.csquares.default",
        "vec_ptype2.csquares",
        "vec_ptype2.csquares.character",
        "vec_ptype2.csquares.csquares",
        "vec_ptype2.csquares.default"
      ]
    }
  ],
  "_pkglogo": "https://github.com/pepijn-devries/csquares/raw/main/man/figures/logo.png",
  "_readme": "https://github.com/pepijn-devries/csquares/raw/main/README.md",
  "_rundeps": [
    "abind",
    "class",
    "classInt",
    "cli",
    "cpp11",
    "DBI",
    "dplyr",
    "e1071",
    "generics",
    "glue",
    "KernSmooth",
    "lifecycle",
    "magrittr",
    "MASS",
    "pillar",
    "pkgconfig",
    "proxy",
    "purrr",
    "R6",
    "Rcpp",
    "rlang",
    "s2",
    "sf",
    "stars",
    "stringi",
    "stringr",
    "tibble",
    "tidyr",
    "tidyselect",
    "units",
    "utf8",
    "vctrs",
    "withr",
    "wk"
  ],
  "_vignettes": [
    {
      "source": "csquares-objects.Rmd",
      "filename": "csquares-objects.html",
      "title": "Csquares objects",
      "engine": "knitr::rmarkdown",
      "headings": [
        "The S3 class csquares",
        "Creating csquares objects",
        "Using characters",
        "Using data.frames",
        "Using Simple Features (sf)",
        "Using Spatiotemporal Arrays (stars)",
        "Validating csquares objects"
      ],
      "created": "2024-07-25 09:58:51",
      "modified": "2024-07-30 18:41:13",
      "commits": 2
    },
    {
      "source": "ices.Rmd",
      "filename": "ices.html",
      "title": "ICES rectangles",
      "engine": "knitr::rmarkdown",
      "headings": [
        "ICES Statistical Rectangles"
      ],
      "created": "2024-07-25 09:58:51",
      "modified": "2024-07-25 09:58:51",
      "commits": 1
    },
    {
      "source": "tidy.Rmd",
      "filename": "tidy.html",
      "title": "Tidy csquares",
      "engine": "knitr::rmarkdown",
      "headings": [
        "The Csquares family",
        "Tidyverse operations",
        "Join",
        "Further reading"
      ],
      "created": "2024-07-25 09:58:51",
      "modified": "2024-07-25 09:58:51",
      "commits": 1
    },
    {
      "source": "Wildcards.Rmd",
      "filename": "Wildcards.html",
      "title": "Wildcards",
      "engine": "knitr::rmarkdown",
      "headings": [
        "What are wildcards?",
        "Expanding wildcards",
        "Matching wild cards",
        "Mode",
        "Strict"
      ],
      "created": "2024-07-05 08:04:29",
      "modified": "2024-07-25 09:58:51",
      "commits": 2
    }
  ],
  "_score": 5.334453751150932,
  "_indexed": true,
  "_nocasepkg": "csquares",
  "_universes": [
    "pepijn-devries"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.1.0.0001",
      "date": "2026-06-21T06:55:30.000Z",
      "distro": "noble",
      "commit": "b11b031d8aee76917450c25ee03edef57d577ae8",
      "fileid": "aac3565a90978228addfe39d52fe122b1e02d345ecdfea72ea11923006cd2f5d",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/pepijn-devries/actions/runs/27896400660"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.1.0.0001",
      "date": "2026-06-21T06:55:20.000Z",
      "distro": "noble",
      "commit": "b11b031d8aee76917450c25ee03edef57d577ae8",
      "fileid": "3e834a41fcd7dd9d99046dc3a316c480c3d4b6e2bce9e12b87dd34a2c4b6626f",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/pepijn-devries/actions/runs/27896400660"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.1.0.0001",
      "date": "2026-06-21T06:54:22.000Z",
      "commit": "b11b031d8aee76917450c25ee03edef57d577ae8",
      "fileid": "cbbbc7db86ba47e389d193bd7f4e43264bf7002622c8b5096422d33a0d68bddc",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/pepijn-devries/actions/runs/27896400660"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "0.1.0.0001",
      "date": "2026-06-21T06:54:23.000Z",
      "commit": "b11b031d8aee76917450c25ee03edef57d577ae8",
      "fileid": "e5b450559d2d1d9345044a8e7175fb66bdf162a591a651b26ebf0fdb4f73da79",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/pepijn-devries/actions/runs/27896400660"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.1.0.0001",
      "date": "2026-06-21T06:55:26.000Z",
      "commit": "b11b031d8aee76917450c25ee03edef57d577ae8",
      "fileid": "fb6bd3baffff8ed28d2c30d2f68c5fcc5a9fee3e6d384e94a176952eaf9d5b92",
      "status": "success",
      "buildurl": "https://github.com/r-universe/pepijn-devries/actions/runs/27896400660"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.1.0.0001",
      "date": "2026-06-21T06:54:24.000Z",
      "commit": "b11b031d8aee76917450c25ee03edef57d577ae8",
      "fileid": "51a60aaf3c9475e988b2fc79ffe0f99c2021db676e886268787d7b0442727226",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/pepijn-devries/actions/runs/27896400660"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.1.0.0001",
      "date": "2026-06-21T06:54:32.000Z",
      "commit": "b11b031d8aee76917450c25ee03edef57d577ae8",
      "fileid": "fcd3609196a8c12f756a0e58e7ee044ab0ecb64e5bd138016a6a0ddfe1fe1a0f",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/pepijn-devries/actions/runs/27896400660"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "0.1.0.0001",
      "date": "2026-06-21T06:54:12.000Z",
      "commit": "b11b031d8aee76917450c25ee03edef57d577ae8",
      "fileid": "14789441d81f92467fbfd360939ce634b6a2ea6f71f71fba1fc190a4cc52881e",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/pepijn-devries/actions/runs/27896400660"
    }
  ]
}