{
  "_id": "6a2141a5cd65a98ecbd2a83e",
  "Package": "leastcostpath",
  "Title": "Modelling Pathways and Movement Potential Within a Landscape",
  "Version": "2.0.13",
  "Date": "2025-06-09",
  "Authors@R": "person(\"Joseph\", \"Lewis\", email = \"josephlewis1992@gmail.com\", role = c(\"aut\", \"cre\"))",
  "Maintainer": "Joseph Lewis <josephlewis1992@gmail.com>",
  "URL": "https://CRAN.R-project.org/package=leastcostpath",
  "Description": "Calculates cost surfaces based on slope to be used when\nmodelling pathways and movement potential within a landscape\n(Lewis, 2021) <doi:10.1007/s10816-021-09522-w>.",
  "License": "GPL-3",
  "Encoding": "UTF-8",
  "RoxygenNote": "7.2.3",
  "Config/pak/sysreqs": "libabsl-dev cmake libgdal-dev gdal-bin libgeos-dev\nlibglpk-dev libxml2-dev libssl-dev libproj-dev libsqlite3-dev\nlibudunits2-dev",
  "Repository": "https://josephlewis.r-universe.dev",
  "Date/Publication": "2025-06-09 22:05:46 UTC",
  "RemoteUrl": "https://github.com/josephlewis/leastcostpath",
  "RemoteRef": "HEAD",
  "RemoteSha": "2a4d51296a12d7e8525b2fc82d507b5e8693f2fb",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-06-04 09:09:27 UTC",
    "User": "root"
  },
  "Author": "Joseph Lewis [aut, cre]",
  "MD5sum": "2b6596f676501b64d20efd01e4597f64",
  "_user": "josephlewis",
  "_type": "src",
  "_file": "leastcostpath_2.0.13.tar.gz",
  "_fileid": "a6b2874f5341f3856cbc8588d2310565479b8c5a903a80858009d9879d74f9b6",
  "_filesize": 303776,
  "_sha256": "a6b2874f5341f3856cbc8588d2310565479b8c5a903a80858009d9879d74f9b6",
  "_created": "2026-06-04T09:09:27.000Z",
  "_published": "2026-06-04T09:13:09.614Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 79486575269,
      "time": 181,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7407551797"
    },
    {
      "job": 79486575259,
      "time": 143,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7407538364"
    },
    {
      "job": 79486575258,
      "time": 144,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7407532394"
    },
    {
      "job": 79486575297,
      "time": 144,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7407528994"
    },
    {
      "job": 79486020894,
      "time": 202,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7407488210"
    },
    {
      "job": 79486575276,
      "time": 118,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7407529523"
    },
    {
      "job": 79486575352,
      "time": 142,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7407538282"
    },
    {
      "job": 79486575394,
      "time": 93,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7407520948"
    },
    {
      "job": 79486575253,
      "time": 91,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7407520364"
    }
  ],
  "_buildurl": "https://github.com/r-universe/josephlewis/actions/runs/26942129755",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/josephlewis/leastcostpath",
  "_commit": {
    "id": "2a4d51296a12d7e8525b2fc82d507b5e8693f2fb",
    "author": "Joseph Lewis <jl2094@cam.ac.uk>",
    "committer": "Joseph Lewis <jl2094@cam.ac.uk>",
    "message": "CRAN submission\n",
    "time": 1749506746
  },
  "_maintainer": {
    "name": "Joseph Lewis",
    "email": "josephlewis1992@gmail.com",
    "login": "josephlewis",
    "twitter": "@josephlewis1992",
    "description": "Research Associate @ Cambridge University |\n\nInterested in Archaeological Mobility; Settlement Patterns; Spatial Uncertainty; and GIS",
    "uuid": 22624818
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 3.4.0",
      "role": "Depends"
    },
    {
      "package": "terra",
      "version": ">= 1.5-34",
      "role": "Imports"
    },
    {
      "package": "sf",
      "version": ">= 1.0-8",
      "role": "Imports"
    },
    {
      "package": "igraph",
      "version": ">= 1.3.0",
      "role": "Imports"
    },
    {
      "package": "foreach",
      "version": ">= 1.5.2",
      "role": "Imports"
    },
    {
      "package": "gstat",
      "version": ">= 2.0-9",
      "role": "Imports"
    },
    {
      "package": "methods",
      "role": "Imports"
    },
    {
      "package": "stats",
      "role": "Imports"
    },
    {
      "package": "Matrix",
      "version": ">= 1.4-1",
      "role": "Imports"
    },
    {
      "package": "parallel",
      "role": "Imports"
    },
    {
      "package": "doParallel",
      "role": "Imports"
    }
  ],
  "_owner": "josephlewis",
  "_selfowned": true,
  "_usedby": 2,
  "_updates": [
    {
      "week": "2025-24",
      "n": 2
    }
  ],
  "_tags": [],
  "_topics": [
    "archaeology",
    "cost-paths",
    "cost-surfaces",
    "movement-potential"
  ],
  "_stars": 70,
  "_contributors": [
    {
      "user": "josephlewis",
      "count": 621,
      "uuid": 22624818
    }
  ],
  "_userbio": {
    "uuid": 22624818,
    "type": "user",
    "name": "josephlewis",
    "description": "Research Associate @ Cambridge University |\r\n\r\nInterested in Archaeological Mobility; Settlement Patterns; Spatial Uncertainty; and GIS"
  },
  "_downloads": {
    "count": 326,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/leastcostpath"
  },
  "_devurl": "https://github.com/josephlewis/leastcostpath",
  "_searchresults": 41,
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/leastcostpath.html",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "manual.pdf"
  ],
  "_homeurl": "https://github.com/josephlewis/leastcostpath",
  "_realowner": "josephlewis",
  "_cranurl": true,
  "_releases": [
    {
      "version": "1.2.1",
      "date": "2020-03-25"
    },
    {
      "version": "1.2.3",
      "date": "2020-04-29"
    },
    {
      "version": "1.3.6",
      "date": "2020-05-15"
    },
    {
      "version": "1.7.4",
      "date": "2020-07-17"
    },
    {
      "version": "1.8.0",
      "date": "2021-02-11"
    },
    {
      "version": "1.8.7",
      "date": "2022-06-03"
    },
    {
      "version": "2.0.12",
      "date": "2023-10-10"
    },
    {
      "version": "2.0.13",
      "date": "2025-06-09"
    }
  ],
  "_exports": [
    "add_dem_error",
    "add_global_stochasticity",
    "buffer_validation",
    "calculate_distance",
    "check_locations",
    "create_accum_cost",
    "create_cost_corridor",
    "create_cs",
    "create_distance_cs",
    "create_FETE_lcps",
    "create_lcp",
    "create_lcp_density",
    "create_slope_cs",
    "crop_cs",
    "force_isotropy",
    "get_coordinates",
    "neighbourhood",
    "PDI_validation",
    "rasterise",
    "replace_values",
    "update_values"
  ],
  "_help": [
    {
      "page": "add_dem_error",
      "title": "Incorporate vertical error into a Digital Elevation Model",
      "topics": [
        "add_dem_error"
      ]
    },
    {
      "page": "add_global_stochasticity",
      "title": "Add global stochasticity to a conductanceMatrix",
      "topics": [
        "add_global_stochasticity"
      ]
    },
    {
      "page": "buffer_validation",
      "title": "Calculate the similarity of a least-cost path to a known route",
      "topics": [
        "buffer_validation"
      ]
    },
    {
      "page": "calculate_distance",
      "title": "calculate distance between adjacent cells",
      "topics": [
        "calculate_distance"
      ]
    },
    {
      "page": "check_locations",
      "title": "check supplied locations",
      "topics": [
        "check_locations"
      ]
    },
    {
      "page": "create_accum_cost",
      "title": "creates an accumulated cost surface",
      "topics": [
        "create_accum_cost"
      ]
    },
    {
      "page": "create_cost_corridor",
      "title": "creates a cost corridor",
      "topics": [
        "create_cost_corridor"
      ]
    },
    {
      "page": "create_cs",
      "title": "Creates a cost surface from a SpatRaster",
      "topics": [
        "create_cs"
      ]
    },
    {
      "page": "create_distance_cs",
      "title": "Creates a distance-based conductance matrix",
      "topics": [
        "create_distance_cs"
      ]
    },
    {
      "page": "create_FETE_lcps",
      "title": "Calculate Least-cost Paths from each location to all other locations",
      "topics": [
        "create_FETE_lcps"
      ]
    },
    {
      "page": "create_lcp",
      "title": "Calculate Least-cost Path from Origin to Destinations",
      "topics": [
        "create_lcp"
      ]
    },
    {
      "page": "create_lcp_density",
      "title": "creates a cumulative least-cost path raster",
      "topics": [
        "create_lcp_density"
      ]
    },
    {
      "page": "create_slope_cs",
      "title": "Creates a slope-based cost surface",
      "topics": [
        "create_slope_cs"
      ]
    },
    {
      "page": "crop_cs",
      "title": "Crop conductanceMatrix to extent",
      "topics": [
        "crop_cs"
      ]
    },
    {
      "page": "force_isotropy",
      "title": "Coerce an anisotropic cost surface to an isotropic cost surface",
      "topics": [
        "force_isotropy"
      ]
    },
    {
      "page": "get_coordinates",
      "title": "get coordinates from a variety of different object classes",
      "topics": [
        "get_coordinates"
      ]
    },
    {
      "page": "neighbourhood",
      "title": "neighbourhood matrix to represent adjacent cells",
      "topics": [
        "neighbourhood"
      ]
    },
    {
      "page": "PDI_validation",
      "title": "Calculate the similarity of a least-cost path to a known route",
      "topics": [
        "PDI_validation"
      ]
    },
    {
      "page": "plot.conductanceMatrix",
      "title": "plot conductanceMatrix",
      "topics": [
        "plot.conductanceMatrix"
      ]
    },
    {
      "page": "rasterise",
      "title": "converts conductanceMatrix to SpatRaster",
      "topics": [
        "rasterise"
      ]
    },
    {
      "page": "replace_values",
      "title": "replace values with values from another object",
      "topics": [
        "replace_values"
      ]
    },
    {
      "page": "update_values",
      "title": "update values in a conductanceMatrix",
      "topics": [
        "update_values"
      ]
    }
  ],
  "_readme": "https://github.com/josephlewis/leastcostpath/raw/HEAD/README.md",
  "_rundeps": [
    "abind",
    "class",
    "classInt",
    "cli",
    "codetools",
    "cpp11",
    "DBI",
    "doParallel",
    "e1071",
    "FNN",
    "foreach",
    "glue",
    "gstat",
    "igraph",
    "intervals",
    "iterators",
    "KernSmooth",
    "lattice",
    "lifecycle",
    "magrittr",
    "MASS",
    "Matrix",
    "pkgconfig",
    "proxy",
    "Rcpp",
    "rlang",
    "s2",
    "sf",
    "sftime",
    "sp",
    "spacetime",
    "stars",
    "terra",
    "units",
    "vctrs",
    "wk",
    "xts",
    "zoo"
  ],
  "_score": 5.935003151453655,
  "_indexed": true,
  "_nocasepkg": "leastcostpath",
  "_universes": [
    "josephlewis"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "2.0.13",
      "date": "2026-06-04T09:12:14.000Z",
      "distro": "noble",
      "commit": "2a4d51296a12d7e8525b2fc82d507b5e8693f2fb",
      "fileid": "94e4e140fd4e35537e9bcf3fe18eccf102840f8862a29e2285f5e79d1a3ee559",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/josephlewis/actions/runs/26942129755"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "2.0.13",
      "date": "2026-06-04T09:11:37.000Z",
      "distro": "noble",
      "commit": "2a4d51296a12d7e8525b2fc82d507b5e8693f2fb",
      "fileid": "412218c84ed11ed678f31a756c81602eb9543e78652f0a8d4fbaeeaa98672ba9",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/josephlewis/actions/runs/26942129755"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "2.0.13",
      "date": "2026-06-04T09:11:31.000Z",
      "commit": "2a4d51296a12d7e8525b2fc82d507b5e8693f2fb",
      "fileid": "41b65b8d81148a694490db4bf92da079f67716658f3e3e57b6eb76656aa503d3",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/josephlewis/actions/runs/26942129755"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "2.0.13",
      "date": "2026-06-04T09:11:21.000Z",
      "commit": "2a4d51296a12d7e8525b2fc82d507b5e8693f2fb",
      "fileid": "8b586b71ee6c303117e724b3e28a0c0d9fd17d2584d2e187cdd5a0548e3f71b2",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/josephlewis/actions/runs/26942129755"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "2.0.13",
      "date": "2026-06-04T09:11:44.000Z",
      "commit": "2a4d51296a12d7e8525b2fc82d507b5e8693f2fb",
      "fileid": "6af0bf4a30a658a0e08873a9be3aa025b5b2119f895811a77ef05bb567efd099",
      "status": "success",
      "buildurl": "https://github.com/r-universe/josephlewis/actions/runs/26942129755"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "2.0.13",
      "date": "2026-06-04T09:11:31.000Z",
      "commit": "2a4d51296a12d7e8525b2fc82d507b5e8693f2fb",
      "fileid": "f5aa75b410392797f31ce899b894fef21ae76472938fccd7816ef98615cfccac",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/josephlewis/actions/runs/26942129755"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "2.0.13",
      "date": "2026-06-04T09:10:43.000Z",
      "commit": "2a4d51296a12d7e8525b2fc82d507b5e8693f2fb",
      "fileid": "a04563a8ec221c472a1a3dbc537a57bfb18a0e290dfbc48b01ad6708674a14b2",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/josephlewis/actions/runs/26942129755"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "2.0.13",
      "date": "2026-06-04T09:10:42.000Z",
      "commit": "2a4d51296a12d7e8525b2fc82d507b5e8693f2fb",
      "fileid": "8c15abc446b1670f077d2c508eca7b518dcbeae34e4201f0ba89ee2cc99ff644",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/josephlewis/actions/runs/26942129755"
    }
  ]
}