{
  "_id": "6a4797f62f27a93436c0f90d",
  "Type": "Package",
  "Package": "natcpp",
  "Title": "Fast C++ Primitives for the 'NeuroAnatomy Toolbox'",
  "Version": "0.3.0",
  "Authors@R": "person(given = \"Gregory\",\nfamily = \"Jefferis\",\nrole = c(\"aut\", \"cre\"),\nemail = \"jefferis@gmail.com\",\ncomment = c(ORCID = \"0000-0002-0587-9355\"))",
  "Description": "Fast functions implemented in C++ via 'Rcpp' to support\nthe 'NeuroAnatomy Toolbox' ('nat') ecosystem. These functions\nprovide large speed-ups for basic manipulation of neuronal\nskeletons over pure R functions found in the 'nat' package. The\nexpectation is that end users will not use this package\ndirectly, but instead the 'nat' package will automatically use\nroutines from this package when it is available to enable large\nperformance gains.",
  "License": "GPL (>= 3)",
  "URL": "https://github.com/natverse/natcpp, https://natverse.org/natcpp/",
  "BugReports": "https://github.com/natverse/natcpp/issues",
  "Config/testthat/edition": "3",
  "Encoding": "UTF-8",
  "Language": "en-GB",
  "RoxygenNote": "7.3.3",
  "Repository": "https://natverse.r-universe.dev",
  "Date/Publication": "2026-07-03 07:41:33 UTC",
  "RemoteUrl": "https://github.com/natverse/natcpp",
  "RemoteRef": "HEAD",
  "RemoteSha": "6bc47f7b48610115449b8b77dcb0f80c616ff0f8",
  "NeedsCompilation": "yes",
  "Packaged": {
    "Date": "2026-07-03 08:08:55 UTC",
    "User": "root"
  },
  "Author": "Gregory Jefferis [aut, cre] (ORCID:\n<https://orcid.org/0000-0002-0587-9355>)",
  "Maintainer": "Gregory Jefferis <jefferis@gmail.com>",
  "_user": "natverse",
  "_type": "src",
  "_file": "natcpp_0.3.0.tar.gz",
  "_fileid": "https://r2.ropensci.org/1e4d5573c26f61273e9533656b30c42a26f3f9765c5ad5315b7da4b5632a71bb",
  "_filesize": 126533,
  "_sha256": "1e4d5573c26f61273e9533656b30c42a26f3f9765c5ad5315b7da4b5632a71bb",
  "_expires": "2026-10-11T11:07:33.000Z",
  "_created": "2026-07-03T08:08:55.000Z",
  "_published": "2026-07-03T11:07:34.535Z",
  "_jobs": [
    {
      "job": 84987013098,
      "time": 140,
      "config": "linux-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "8061278447"
    },
    {
      "job": 84987013377,
      "time": 134,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "8061275762"
    },
    {
      "job": 84987013103,
      "time": 181,
      "config": "linux-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8061292876"
    },
    {
      "job": 84987013487,
      "time": 132,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8061273900"
    },
    {
      "job": 84987013540,
      "time": 97,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "8061262272"
    },
    {
      "job": 84987013101,
      "time": 259,
      "config": "macos-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "8061319723"
    },
    {
      "job": 84987013324,
      "time": 127,
      "config": "macos-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8061273042"
    },
    {
      "job": 84987012836,
      "time": 224,
      "config": "macos-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8061307637"
    },
    {
      "job": 84987012814,
      "time": 167,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8061228297"
    },
    {
      "job": 84987013368,
      "time": 118,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "8061269512"
    },
    {
      "job": 84987012835,
      "time": 121,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "8061270938"
    },
    {
      "job": 84987013472,
      "time": 106,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "8061265380"
    },
    {
      "job": 84987013312,
      "time": 125,
      "config": "windows-release",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8061271741"
    }
  ],
  "_host": "GitHub-Actions",
  "_buildurl": "https://github.com/r-universe/natverse/actions/runs/28647322963",
  "_status": "success",
  "_upstream": "https://github.com/natverse/natcpp",
  "_commit": {
    "id": "6bc47f7b48610115449b8b77dcb0f80c616ff0f8",
    "author": "Gregory Jefferis <jefferis@gmail.com>",
    "committer": "GitHub <noreply@github.com>",
    "message": "Merge pull request #3 from natverse/feature/weighted-jaccard\n\nweighted jaccard functions",
    "time": 1783064493
  },
  "_maintainer": {
    "name": "Gregory Jefferis",
    "email": "jefferis@gmail.com",
    "login": "jefferis",
    "linkedin": "in/greg-jefferis-8b865287",
    "orcid": "0000-0002-0587-9355",
    "twitter": "@gsxej",
    "description": "develops @natverse, directs collaborative @flyconnectome group at Dept of Zoology, joint head of Division of Neurobiology @ MRC LMB.",
    "uuid": 23763
  },
  "_distro": "resolute",
  "_registered": true,
  "_dependencies": [
    {
      "package": "Rcpp",
      "role": "LinkingTo"
    },
    {
      "package": "RcppThread",
      "role": "LinkingTo"
    },
    {
      "package": "Matrix",
      "role": "Imports"
    },
    {
      "package": "methods",
      "role": "Imports"
    },
    {
      "package": "Rcpp",
      "version": ">= 1.0.6",
      "role": "Imports"
    },
    {
      "package": "spelling",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "version": ">= 3.0.0",
      "role": "Suggests"
    }
  ],
  "_owner": "natverse",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2025-42",
      "n": 12
    },
    {
      "week": "2026-14",
      "n": 2
    },
    {
      "week": "2026-27",
      "n": 1
    }
  ],
  "_tags": [],
  "_topics": [
    "computational-neuroscience",
    "neuroanatomy-toolbox",
    "cpp"
  ],
  "_stars": 0,
  "_contributors": [
    {
      "user": "jefferis",
      "count": 75,
      "uuid": 23763
    }
  ],
  "_userbio": {
    "uuid": 53296153,
    "type": "organization",
    "name": "natverse",
    "followers": 15,
    "description": "R tools for quantitative neuroanatomy"
  },
  "_downloads": {
    "count": 301,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/natcpp"
  },
  "_devurl": "https://github.com/natverse/natcpp",
  "_pkgdown": "https://natverse.org/natcpp/",
  "_searchresults": 6,
  "_rbuild": "4.6.1",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/natcpp.html",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "manual.pdf"
  ],
  "_homeurl": "https://github.com/natverse/natcpp",
  "_realowner": "natverse",
  "_cranurl": true,
  "_releases": [
    {
      "version": "0.1.0",
      "date": "2021-07-13"
    },
    {
      "version": "0.2",
      "date": "2025-10-14"
    }
  ],
  "_exports": [
    "c_coords21dindex",
    "c_EdgeListFromSegList",
    "c_ijkpos",
    "c_listlengths",
    "c_ListofMatrixRows",
    "c_seglengths",
    "c_sub2ind",
    "c_topntail",
    "c_topntail_list",
    "c_total_cable",
    "c_weighted_jaccard_dense",
    "c_weighted_jaccard_sparse"
  ],
  "_help": [
    {
      "page": "c_coords21dindex",
      "title": "Convert physical coordinates to 1d indices into image array",
      "topics": [
        "c_coords21dindex"
      ]
    },
    {
      "page": "c_EdgeListFromSegList",
      "title": "Turn a segment list into an edgelist suitable for constructing an ngraph",
      "topics": [
        "c_EdgeListFromSegList"
      ]
    },
    {
      "page": "c_ijkpos",
      "title": "Convert physical coordinates to pixel coordinates",
      "topics": [
        "c_ijkpos"
      ]
    },
    {
      "page": "c_listlengths",
      "title": "A simple function to compute the lengths of the elements of an R list",
      "topics": [
        "c_listlengths"
      ]
    },
    {
      "page": "c_ListofMatrixRows",
      "title": "Convert a matrix into list of row vectors",
      "topics": [
        "c_ListofMatrixRows"
      ]
    },
    {
      "page": "c_seglengths",
      "title": "Compute summed segment lengths or total cable",
      "topics": [
        "c_seglengths",
        "c_total_cable"
      ]
    },
    {
      "page": "c_sub2ind",
      "title": "Find 1D index given n-dimensional indices",
      "topics": [
        "c_sub2ind"
      ]
    },
    {
      "page": "c_topntail",
      "title": "Find the first and last elements of all vectors in a list",
      "topics": [
        "c_topntail",
        "c_topntail_list"
      ]
    },
    {
      "page": "c_weighted_jaccard_dense",
      "title": "Dense weighted Jaccard similarity via C++",
      "topics": [
        "c_weighted_jaccard_dense"
      ]
    },
    {
      "page": "c_weighted_jaccard_sparse",
      "title": "Sparse weighted Jaccard similarity via C++",
      "topics": [
        "c_weighted_jaccard_sparse"
      ]
    }
  ],
  "_readme": "https://github.com/natverse/natcpp/raw/HEAD/README.md",
  "_rundeps": [
    "lattice",
    "Matrix",
    "Rcpp",
    "RcppThread"
  ],
  "_sysdeps": [
    {
      "shlib": "libstdc++",
      "package": "libstdc++6",
      "source": "gcc",
      "version": "16-20260322-1ubuntu1",
      "name": "c++",
      "homepage": "http://gcc.gnu.org/",
      "description": "GNU Standard C++ Library v3"
    }
  ],
  "_score": 3.1760912590556813,
  "_indexed": true,
  "_nocasepkg": "natcpp",
  "_universes": [
    "natverse",
    "jefferis"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.3.0",
      "date": "2026-07-03T08:11:24.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "6bc47f7b48610115449b8b77dcb0f80c616ff0f8",
      "fileid": "https://r2.ropensci.org/bf541bfcb23318ffc36ac7dd39926d578fa26725f5c1ed5c06c6a81f9ed4d44f",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/natverse/actions/runs/28647322963"
    },
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.3.0",
      "date": "2026-07-03T08:11:12.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "6bc47f7b48610115449b8b77dcb0f80c616ff0f8",
      "fileid": "https://r2.ropensci.org/65c14ed9fecb8e2e19bebcb18b667772b12adbab094fef365f12d97fc4da00cc",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/natverse/actions/runs/28647322963"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "0.3.0",
      "date": "2026-07-03T08:12:05.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "6bc47f7b48610115449b8b77dcb0f80c616ff0f8",
      "fileid": "https://r2.ropensci.org/355a76b4a685919bafbe60f56ecfce1bae88c6097f10f15886af69c32f4c0659",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/natverse/actions/runs/28647322963"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "0.3.0",
      "date": "2026-07-03T08:11:12.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "6bc47f7b48610115449b8b77dcb0f80c616ff0f8",
      "fileid": "https://r2.ropensci.org/b0147826c1ba6c890ddca099f86731f75556f768fbf0571597fe5ad6552cea77",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/natverse/actions/runs/28647322963"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.3.0",
      "date": "2026-07-03T08:10:40.000Z",
      "arch": "aarch64",
      "commit": "6bc47f7b48610115449b8b77dcb0f80c616ff0f8",
      "fileid": "https://r2.ropensci.org/d4a040ab76aa6e4cd946e5c02118ceb0ceeefc98131cd9d89e8371129d493546",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/natverse/actions/runs/28647322963"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.3.0",
      "date": "2026-07-03T08:12:51.000Z",
      "arch": "x86_64",
      "commit": "6bc47f7b48610115449b8b77dcb0f80c616ff0f8",
      "fileid": "https://r2.ropensci.org/b51449a1ec6a3fd3155538bf2c9e5b174c01b6e8dcb21b7b74ed5ad75371d3ff",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/natverse/actions/runs/28647322963"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "0.3.0",
      "date": "2026-07-03T08:11:01.000Z",
      "arch": "aarch64",
      "commit": "6bc47f7b48610115449b8b77dcb0f80c616ff0f8",
      "fileid": "https://r2.ropensci.org/6dd4e421225fb0f7d0ddd5c10a02a2176be24716f8a8cab8d0fb71866244817a",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/natverse/actions/runs/28647322963"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "0.3.0",
      "date": "2026-07-03T08:12:19.000Z",
      "arch": "x86_64",
      "commit": "6bc47f7b48610115449b8b77dcb0f80c616ff0f8",
      "fileid": "https://r2.ropensci.org/864af9162bac6e8ce5bbc0caab2a512be6ea179ea01f710de1300aa8ec065d17",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/natverse/actions/runs/28647322963"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.3.0",
      "date": "2026-07-03T08:11:11.000Z",
      "arch": "emscripten",
      "commit": "6bc47f7b48610115449b8b77dcb0f80c616ff0f8",
      "fileid": "https://r2.ropensci.org/99fe7d2bf4a479153c4e8c3cb1a2f202d9ec4dabe004d0bcefaa1631805f1e37",
      "status": "success",
      "buildurl": "https://github.com/r-universe/natverse/actions/runs/28647322963"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.3.0",
      "date": "2026-07-03T08:10:28.000Z",
      "arch": "x86_64",
      "commit": "6bc47f7b48610115449b8b77dcb0f80c616ff0f8",
      "fileid": "https://r2.ropensci.org/94c15bd72b175d5e3f305b6a421273d30a4ddc35802594222965b622b3c52c1d",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/natverse/actions/runs/28647322963"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.3.0",
      "date": "2026-07-03T08:10:15.000Z",
      "arch": "x86_64",
      "commit": "6bc47f7b48610115449b8b77dcb0f80c616ff0f8",
      "fileid": "https://r2.ropensci.org/b4b11aeffbc4a1258eeecd91f3e4febb01ea62c02e2a7e0d3b2faa4e6b3b7dee",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/natverse/actions/runs/28647322963"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "0.3.0",
      "date": "2026-07-03T08:10:24.000Z",
      "arch": "x86_64",
      "commit": "6bc47f7b48610115449b8b77dcb0f80c616ff0f8",
      "fileid": "https://r2.ropensci.org/e90c56e8b21b7fd44ba0c7213555ff9398b6b14770a64b713f4abec270dd0f14",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/natverse/actions/runs/28647322963"
    }
  ]
}