{
  "_id": "6a5e26d29baadeef8ab56e86",
  "Type": "Package",
  "Package": "natcpp",
  "Title": "Fast C++ Primitives for the 'NeuroAnatomy Toolbox'",
  "Version": "0.3.1",
  "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",
  "Config/roxygen2/version": "8.0.0",
  "Repository": "https://natverse.r-universe.dev",
  "Date/Publication": "2026-07-20 13:00:19 UTC",
  "RemoteUrl": "https://github.com/natverse/natcpp",
  "RemoteRef": "HEAD",
  "RemoteSha": "82dfbee31a85ff8bf79e5887d63c44e2e9a4b2fa",
  "NeedsCompilation": "yes",
  "Packaged": {
    "Date": "2026-07-20 13:42:10 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.1.tar.gz",
  "_fileid": "https://r2.ropensci.org/e9f1ac7abdf064ab6b54915b45468958b38e85200027f35ba58addfd16ad3e94",
  "_filesize": 126290,
  "_sha256": "e9f1ac7abdf064ab6b54915b45468958b38e85200027f35ba58addfd16ad3e94",
  "_expires": "2026-10-28T13:46:56.000Z",
  "_created": "2026-07-20T13:42:10.000Z",
  "_published": "2026-07-20T13:46:58.282Z",
  "_jobs": [
    {
      "job": 88368844038,
      "time": 154,
      "config": "linux-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "8463082020"
    },
    {
      "job": 88368844020,
      "time": 142,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "8463073562"
    },
    {
      "job": 88368844057,
      "time": 140,
      "config": "linux-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8463073974"
    },
    {
      "job": 88368844000,
      "time": 135,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8463069530"
    },
    {
      "job": 88368844026,
      "time": 123,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "8463063342"
    },
    {
      "job": 88368843991,
      "time": 189,
      "config": "macos-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "8463099443"
    },
    {
      "job": 88368844142,
      "time": 86,
      "config": "macos-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8463043915"
    },
    {
      "job": 88368844117,
      "time": 214,
      "config": "macos-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8463111698"
    },
    {
      "job": 88368038395,
      "time": 195,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8462999553"
    },
    {
      "job": 88368843905,
      "time": 115,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "8463059321"
    },
    {
      "job": 88368843978,
      "time": 128,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "8463066876"
    },
    {
      "job": 88368844045,
      "time": 112,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "8463057160"
    },
    {
      "job": 88368843990,
      "time": 133,
      "config": "windows-release",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8463068498"
    }
  ],
  "_host": "GitHub-Actions",
  "_buildurl": "https://github.com/r-universe/natverse/actions/runs/29747169418",
  "_status": "success",
  "_upstream": "https://github.com/natverse/natcpp",
  "_commit": {
    "id": "82dfbee31a85ff8bf79e5887d63c44e2e9a4b2fa",
    "author": "Gregory Jefferis <jefferis@gmail.com>",
    "committer": "Gregory Jefferis <jefferis@gmail.com>",
    "message": "Release v0.3.1: bump version, NEWS and cran-comments\n\nPatch release fixing the libatomic link failure on CRAN's Debian clang\nr-devel check, plus the Makevars.win/cleanup build hygiene follow-up.\nwin-builder devel now reports Status: OK.\n",
    "time": 1784552419
  },
  "_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
    },
    {
      "week": "2026-28",
      "n": 4
    },
    {
      "week": "2026-29",
      "n": 2
    },
    {
      "week": "2026-30",
      "n": 1
    }
  ],
  "_tags": [
    {
      "name": "v0.2",
      "date": "2025-10-14"
    },
    {
      "name": "v0.3.0",
      "date": "2026-07-08"
    },
    {
      "name": "v0.3.1",
      "date": "2026-07-20"
    }
  ],
  "_topics": [
    "computational-neuroscience",
    "neuroanatomy-toolbox",
    "cpp"
  ],
  "_stars": 0,
  "_contributors": [
    {
      "user": "jefferis",
      "count": 83,
      "uuid": 23763
    }
  ],
  "_userbio": {
    "uuid": 53296153,
    "type": "organization",
    "name": "natverse",
    "followers": 15,
    "description": "R tools for quantitative neuroanatomy"
  },
  "_downloads": {
    "count": 306,
    "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"
    },
    {
      "version": "0.3.0",
      "date": "2026-07-08"
    }
  ],
  "_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.4771212547196626,
  "_indexed": true,
  "_nocasepkg": "natcpp",
  "_universes": [
    "natverse",
    "jefferis"
  ],
  "_previous": "0.3.0",
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.3.1",
      "date": "2026-07-20T13:45:00.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "82dfbee31a85ff8bf79e5887d63c44e2e9a4b2fa",
      "fileid": "https://r2.ropensci.org/1e6c61489af1383f3099d2fd785ec9a8dab1a67148791cd9c4a29b6efd21cba9",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/natverse/actions/runs/29747169418"
    },
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.3.1",
      "date": "2026-07-20T13:44:40.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "82dfbee31a85ff8bf79e5887d63c44e2e9a4b2fa",
      "fileid": "https://r2.ropensci.org/3feb915873b7aff0c06546729b4bddadaedbb4113050a7e52f23fa45b28418d8",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/natverse/actions/runs/29747169418"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "0.3.1",
      "date": "2026-07-20T13:44:47.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "82dfbee31a85ff8bf79e5887d63c44e2e9a4b2fa",
      "fileid": "https://r2.ropensci.org/d18fdfc54a7b206fa0f0b646d28caca7eea116cb2251c8df6c7e776757135974",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/natverse/actions/runs/29747169418"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "0.3.1",
      "date": "2026-07-20T13:44:39.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "82dfbee31a85ff8bf79e5887d63c44e2e9a4b2fa",
      "fileid": "https://r2.ropensci.org/560e18cb2fb2a9c696feb0c2137abcd6553950409a3acf62516d1bb331c13f4c",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/natverse/actions/runs/29747169418"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.3.1",
      "date": "2026-07-20T13:44:22.000Z",
      "arch": "aarch64",
      "commit": "82dfbee31a85ff8bf79e5887d63c44e2e9a4b2fa",
      "fileid": "https://r2.ropensci.org/cde20e372d473dac10779dbedf26082717cf4c251cf1800c0222784a0cf66d47",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/natverse/actions/runs/29747169418"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.3.1",
      "date": "2026-07-20T13:45:14.000Z",
      "arch": "x86_64",
      "commit": "82dfbee31a85ff8bf79e5887d63c44e2e9a4b2fa",
      "fileid": "https://r2.ropensci.org/4ab59e64288f83a8fdb183f6fac572d95c41894c769f098fdf90fea24021e0f9",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/natverse/actions/runs/29747169418"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "0.3.1",
      "date": "2026-07-20T13:43:52.000Z",
      "arch": "aarch64",
      "commit": "82dfbee31a85ff8bf79e5887d63c44e2e9a4b2fa",
      "fileid": "https://r2.ropensci.org/aa937c0174b4f6fb96b34776930e6046fc20572594d5fafb5fa27b1a04a6993e",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/natverse/actions/runs/29747169418"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "0.3.1",
      "date": "2026-07-20T13:45:26.000Z",
      "arch": "x86_64",
      "commit": "82dfbee31a85ff8bf79e5887d63c44e2e9a4b2fa",
      "fileid": "https://r2.ropensci.org/f5efe1e402225da2d93c04436b75bf135894507566119b29e5e64bbb710d29ff",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/natverse/actions/runs/29747169418"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.3.1",
      "date": "2026-07-20T13:44:28.000Z",
      "arch": "emscripten",
      "commit": "82dfbee31a85ff8bf79e5887d63c44e2e9a4b2fa",
      "fileid": "https://r2.ropensci.org/1a707338d82232d24e97ef9785abdce8ddfc53362eaccfea7b37ac2f6ab319f7",
      "status": "success",
      "buildurl": "https://github.com/r-universe/natverse/actions/runs/29747169418"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.3.1",
      "date": "2026-07-20T13:43:52.000Z",
      "arch": "x86_64",
      "commit": "82dfbee31a85ff8bf79e5887d63c44e2e9a4b2fa",
      "fileid": "https://r2.ropensci.org/b857a2ecbfea36ca32c5a378e775e0a504d9cb27eccda2ef8688ba519479e374",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/natverse/actions/runs/29747169418"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.3.1",
      "date": "2026-07-20T13:43:41.000Z",
      "arch": "x86_64",
      "commit": "82dfbee31a85ff8bf79e5887d63c44e2e9a4b2fa",
      "fileid": "https://r2.ropensci.org/edf19425fd9094ba38c45312bf2e8d349be0e88db9be6a8ab9b57c62d283dcee",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/natverse/actions/runs/29747169418"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "0.3.1",
      "date": "2026-07-20T13:43:37.000Z",
      "arch": "x86_64",
      "commit": "82dfbee31a85ff8bf79e5887d63c44e2e9a4b2fa",
      "fileid": "https://r2.ropensci.org/86a2d5bb42ad14181af97badab235b216c76a4a4a45f4b581311a0572c49d79f",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/natverse/actions/runs/29747169418"
    }
  ]
}