{
  "_id": "6a2539914b233be198398398",
  "Package": "blockCV",
  "Type": "Package",
  "Title": "Spatial and Environmental Blocking for K-Fold and LOO\nCross-Validation",
  "Version": "3.2-0",
  "Date": "2025-08-20",
  "Authors@R": "c(person(\"Roozbeh\", \"Valavi\", role = c(\"aut\", \"cre\"),\nemail = \"valavi.r@gmail.com\", comment = c(ORCID = \"0000-0003-2495-5277\")),\nperson(\"Jane\", \"Elith\", role = \"aut\",\nemail = \"j.elith@unimelb.edu.au\"),\nperson(\"José\", \"Lahoz-Monfort\", role = \"aut\",\nemail = \"jose.lahoz@unimelb.edu.au\"),\nperson(\"Ian\", \"Flint\", role = \"aut\",\nemail = \"ian.flint@unimelb.edu.au\"),\nperson(\"Gurutzeta\", \"Guillera-Arroita\", role = \"aut\",\nemail = \"gurutzeta.guillera@unimelb.edu.au\"))",
  "URL": "https://github.com/rvalavi/blockCV",
  "BugReports": "https://github.com/rvalavi/blockCV/issues",
  "Maintainer": "Roozbeh Valavi <valavi.r@gmail.com>",
  "Description": "Creating spatially or environmentally separated folds for\ncross-validation to provide a robust error estimation in\nspatially structured environments; Investigating and\nvisualising the effective range of spatial autocorrelation in\ncontinuous raster covariates and point samples to find an\ninitial realistic distance band to separate training and\ntesting datasets spatially described in Valavi, R. et al.\n(2019) <doi:10.1111/2041-210X.13107>.",
  "License": "GPL (>= 3)",
  "Encoding": "UTF-8",
  "RoxygenNote": "7.3.2",
  "VignetteBuilder": "knitr",
  "Config/testthat/edition": "3",
  "Config/pak/sysreqs": "libabsl-dev cmake libgdal-dev gdal-bin libgeos-dev\nlibssl-dev libproj-dev libsqlite3-dev libudunits2-dev",
  "Repository": "https://rvalavi.r-universe.dev",
  "Date/Publication": "2025-09-10 02:07:19 UTC",
  "RemoteUrl": "https://github.com/rvalavi/blockcv",
  "RemoteRef": "HEAD",
  "RemoteSha": "cf04539ae6f19a8523b72d0d084b7502f71ea41e",
  "NeedsCompilation": "yes",
  "Packaged": {
    "Date": "2026-06-07 09:22:23 UTC",
    "User": "root"
  },
  "Author": "Roozbeh Valavi [aut, cre] (ORCID:\n<https://orcid.org/0000-0003-2495-5277>),\nJane Elith [aut],\nJosé Lahoz-Monfort [aut],\nIan Flint [aut],\nGurutzeta Guillera-Arroita [aut]",
  "MD5sum": "125c653acdaa388c4a8868ed1dea4493",
  "_user": "rvalavi",
  "_type": "src",
  "_file": "blockCV_3.2-0.tar.gz",
  "_fileid": "f3b744c4ac6bd3302987713f9c70ecfc3d0a4a9af05fa6b2cd0e609bbaab1795",
  "_filesize": 4477166,
  "_sha256": "f3b744c4ac6bd3302987713f9c70ecfc3d0a4a9af05fa6b2cd0e609bbaab1795",
  "_created": "2026-06-07T09:22:23.000Z",
  "_published": "2026-06-07T09:27:45.698Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 79947626272,
      "time": 186,
      "config": "linux-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7462799985"
    },
    {
      "job": 79947626245,
      "time": 175,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7462797974"
    },
    {
      "job": 79947626252,
      "time": 190,
      "config": "linux-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7462800461"
    },
    {
      "job": 79947626413,
      "time": 204,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7462801920"
    },
    {
      "job": 79947626248,
      "time": 118,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7462790592"
    },
    {
      "job": 79947626246,
      "time": 266,
      "config": "macos-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7462809244"
    },
    {
      "job": 79947626240,
      "time": 171,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7462797414"
    },
    {
      "job": 79947626387,
      "time": 266,
      "config": "macos-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7462809420"
    },
    {
      "job": 79947338276,
      "time": 300,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7462775333"
    },
    {
      "job": 79947626247,
      "time": 155,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7462795414"
    },
    {
      "job": 79947626266,
      "time": 167,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7462797073"
    },
    {
      "job": 79947626238,
      "time": 133,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7462792658"
    },
    {
      "job": 79947626303,
      "time": 144,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7462794121"
    }
  ],
  "_buildurl": "https://github.com/r-universe/rvalavi/actions/runs/27088421514",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/rvalavi/blockcv",
  "_commit": {
    "id": "cf04539ae6f19a8523b72d0d084b7502f71ea41e",
    "author": "Roozbeh Valavi <val085@csiro.au>",
    "committer": "Roozbeh Valavi <val085@csiro.au>",
    "message": "update readme\n",
    "time": 1757470039
  },
  "_maintainer": {
    "name": "Roozbeh Valavi",
    "email": "valavi.r@gmail.com",
    "login": "rvalavi",
    "bluesky": "@rvalavi.bsky.social",
    "twitter": "@ValaviRoozbeh",
    "description": "Data science and spatial ecology",
    "uuid": 30306220,
    "orcid": "0000-0003-2495-5277"
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 3.5.0",
      "role": "Depends"
    },
    {
      "package": "Rcpp",
      "role": "LinkingTo"
    },
    {
      "package": "sf",
      "version": ">= 1.0",
      "role": "Imports"
    },
    {
      "package": "sp",
      "role": "Imports"
    },
    {
      "package": "terra",
      "version": ">= 1.6-41",
      "role": "Imports"
    },
    {
      "package": "ggplot2",
      "version": ">= 3.3.6",
      "role": "Imports"
    },
    {
      "package": "cowplot",
      "role": "Imports"
    },
    {
      "package": "automap",
      "version": ">= 1.0-16",
      "role": "Imports"
    },
    {
      "package": "Rcpp",
      "version": ">= 1.0.2",
      "role": "Imports"
    },
    {
      "package": "shiny",
      "version": ">= 1.7",
      "role": "Suggests"
    },
    {
      "package": "tmap",
      "version": ">= 2.0",
      "role": "Suggests"
    },
    {
      "package": "biomod2",
      "role": "Suggests"
    },
    {
      "package": "gstat",
      "role": "Suggests"
    },
    {
      "package": "methods",
      "role": "Suggests"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "version": ">= 3.0.0",
      "role": "Suggests"
    }
  ],
  "_owner": "rvalavi",
  "_selfowned": true,
  "_usedby": 4,
  "_updates": [
    {
      "week": "2025-25",
      "n": 1
    },
    {
      "week": "2025-26",
      "n": 4
    },
    {
      "week": "2025-31",
      "n": 3
    },
    {
      "week": "2025-33",
      "n": 10
    },
    {
      "week": "2025-34",
      "n": 4
    },
    {
      "week": "2025-35",
      "n": 1
    },
    {
      "week": "2025-37",
      "n": 2
    }
  ],
  "_tags": [],
  "_topics": [
    "cross-validation",
    "spatial",
    "spatial-cross-validation",
    "spatial-modelling",
    "species-distribution-modelling",
    "cpp"
  ],
  "_stars": 122,
  "_contributors": [
    {
      "user": "rvalavi",
      "count": 314,
      "uuid": 30306220
    },
    {
      "user": "iflint1",
      "count": 2,
      "uuid": 58583428
    },
    {
      "user": "mayagueguen",
      "count": 1,
      "uuid": 16795576
    }
  ],
  "_userbio": {
    "uuid": 30306220,
    "type": "user",
    "name": "Roozbeh Valavi",
    "description": "Data science and spatial ecology"
  },
  "_downloads": {
    "count": 5866,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/blockCV"
  },
  "_mentions": 5,
  "_devurl": "https://github.com/rvalavi/blockcv",
  "_searchresults": 444,
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/blockCV.html",
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/readme.html",
    "extra/readme.md",
    "manual.pdf"
  ],
  "_homeurl": "https://github.com/rvalavi/blockcv",
  "_realowner": "rvalavi",
  "_cranurl": true,
  "_releases": [
    {
      "version": "2.1.1",
      "date": "2020-02-23"
    },
    {
      "version": "2.1.4",
      "date": "2021-06-17"
    },
    {
      "version": "3.0-0",
      "date": "2023-02-06"
    },
    {
      "version": "3.1-1",
      "date": "2023-04-08"
    },
    {
      "version": "3.1-2",
      "date": "2023-05-20"
    },
    {
      "version": "3.1-3",
      "date": "2023-06-04"
    },
    {
      "version": "3.1-4",
      "date": "2024-05-23"
    },
    {
      "version": "3.1-5",
      "date": "2024-11-01"
    },
    {
      "version": "3.1-6",
      "date": "2025-06-23"
    },
    {
      "version": "3.2-0",
      "date": "2025-08-21"
    }
  ],
  "_exports": [
    "buffering",
    "cv_block_size",
    "cv_buffer",
    "cv_cluster",
    "cv_nndm",
    "cv_plot",
    "cv_similarity",
    "cv_spatial",
    "cv_spatial_autocor",
    "envBlock",
    "rangeExplorer",
    "spatialAutoRange",
    "spatialBlock"
  ],
  "_help": [
    {
      "page": "blockCV",
      "title": "blockCV: Spatial and Environmental Blocking for K-Fold and LOO Cross-Validation",
      "topics": [
        "blockCV-package",
        "blockCV"
      ]
    },
    {
      "page": "buffering",
      "title": "Use distance (buffer) around records to separate train and test folds",
      "topics": [
        "buffering"
      ]
    },
    {
      "page": "cv_block_size",
      "title": "Explore spatial block size",
      "topics": [
        "cv_block_size"
      ]
    },
    {
      "page": "cv_buffer",
      "title": "Use buffer around records to separate train and test folds (a.k.a. buffered/spatial leave-one-out)",
      "topics": [
        "cv_buffer"
      ]
    },
    {
      "page": "cv_cluster",
      "title": "Use environmental or spatial clustering to separate train and test folds",
      "topics": [
        "cv_cluster"
      ]
    },
    {
      "page": "cv_nndm",
      "title": "Use the Nearest Neighbour Distance Matching (NNDM) to separate train and test folds",
      "topics": [
        "cv_nndm"
      ]
    },
    {
      "page": "cv_plot",
      "title": "Visualising folds created by blockCV in ggplot",
      "topics": [
        "cv_plot"
      ]
    },
    {
      "page": "cv_similarity",
      "title": "Compute similarity measures to evaluate possible extrapolation in testing folds",
      "topics": [
        "cv_similarity"
      ]
    },
    {
      "page": "cv_spatial",
      "title": "Use spatial blocks to separate train and test folds",
      "topics": [
        "cv_spatial"
      ]
    },
    {
      "page": "cv_spatial_autocor",
      "title": "Measure spatial autocorrelation in spatial response data or predictor raster files",
      "topics": [
        "cv_spatial_autocor"
      ]
    },
    {
      "page": "envBlock",
      "title": "Use environmental clustering to separate train and test folds",
      "topics": [
        "envBlock"
      ]
    },
    {
      "page": "foldExplorer",
      "title": "Explore the generated folds",
      "topics": [
        "foldExplorer"
      ]
    },
    {
      "page": "rangeExplorer",
      "title": "Explore spatial block size",
      "topics": [
        "rangeExplorer"
      ]
    },
    {
      "page": "spatialAutoRange",
      "title": "Measure spatial autocorrelation in the predictor raster files",
      "topics": [
        "spatialAutoRange"
      ]
    },
    {
      "page": "spatialBlock",
      "title": "Use spatial blocks to separate train and test folds",
      "topics": [
        "spatialBlock"
      ]
    }
  ],
  "_pkglogo": "https://github.com/rvalavi/blockcv/raw/HEAD/man/figures/logo.png",
  "_readme": "https://github.com/rvalavi/blockcv/raw/HEAD/README.md",
  "_rundeps": [
    "abind",
    "automap",
    "class",
    "classInt",
    "cli",
    "cowplot",
    "cpp11",
    "DBI",
    "e1071",
    "farver",
    "FNN",
    "ggplot2",
    "glue",
    "gstat",
    "gtable",
    "intervals",
    "isoband",
    "KernSmooth",
    "labeling",
    "lattice",
    "lifecycle",
    "MASS",
    "plyr",
    "proxy",
    "R6",
    "RColorBrewer",
    "Rcpp",
    "reshape",
    "rlang",
    "s2",
    "S7",
    "scales",
    "sf",
    "sftime",
    "sp",
    "spacetime",
    "stars",
    "terra",
    "units",
    "vctrs",
    "viridisLite",
    "withr",
    "wk",
    "xts",
    "zoo"
  ],
  "_sysdeps": [
    {
      "shlib": "libstdc++",
      "package": "libstdc++6",
      "source": "gcc",
      "version": "14.2.0-4ubuntu2~24.04.1",
      "name": "c++",
      "homepage": "http://gcc.gnu.org/",
      "description": "GNU Standard C++ Library v3"
    }
  ],
  "_vignettes": [
    {
      "source": "tutorial_1.Rmd",
      "filename": "tutorial_1.html",
      "title": "blockCV introduction: how to create block cross-validation folds ",
      "author": "Roozbeh Valavi, Jane Elith, José Lahoz-Monfort and Gurutzeta Guillera-Arroita",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Introduction",
        "New updates of the version 3.0",
        "Installation",
        "Package data",
        "Block cross-validation strategies",
        "Spatial blocks",
        "Spatial and environemntal clustering",
        "Buffering LOO (also known as Spatial LOO)",
        "Nearest Neighbour Distance Matching (NNDM) LOO",
        "Visualising the folds",
        "Check similarity",
        "Estimating size: the effective range of spatial autocorrelation",
        "References:"
      ],
      "created": "2023-01-29 02:57:28",
      "modified": "2025-08-15 07:20:38",
      "commits": 15
    },
    {
      "source": "tutorial_2.Rmd",
      "filename": "tutorial_2.html",
      "title": "Block cross-validation for species distribution modelling ",
      "author": "Roozbeh Valavi, Jane Elith, José Lahoz-Monfort and Gurutzeta Guillera-Arroita",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Introduction",
        "Reading and plotting data",
        "Generating block CV folds",
        "Evaluating SDMs with block cross-validation: examples",
        "Using blockCV with Random Forest model",
        "Using blockCV in biomod2 package",
        "References:"
      ],
      "created": "2023-01-29 02:57:28",
      "modified": "2025-06-23 04:15:03",
      "commits": 14
    }
  ],
  "_score": 11.426364145495784,
  "_indexed": true,
  "_nocasepkg": "blockcv",
  "_universes": [
    "rvalavi"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "3.2-0",
      "date": "2026-06-07T09:25:20.000Z",
      "distro": "noble",
      "arch": "aarch64",
      "commit": "cf04539ae6f19a8523b72d0d084b7502f71ea41e",
      "fileid": "ca20e65e97b0d96711c2f1ef5d53589c15f52a7b5f65bb415f4af2d1149716e1",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/rvalavi/actions/runs/27088421514"
    },
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "3.2-0",
      "date": "2026-06-07T09:25:09.000Z",
      "distro": "noble",
      "arch": "x86_64",
      "commit": "cf04539ae6f19a8523b72d0d084b7502f71ea41e",
      "fileid": "a59857520c8ca2ad598b51101dacca6b5564c950624271182224c7f9968d05ae",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/rvalavi/actions/runs/27088421514"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "3.2-0",
      "date": "2026-06-07T09:25:23.000Z",
      "distro": "noble",
      "arch": "aarch64",
      "commit": "cf04539ae6f19a8523b72d0d084b7502f71ea41e",
      "fileid": "7d8f1b0fdae220bdf441f2c28e5af0efcb8f0ba6fa5f46a08b10d80f9d28839a",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/rvalavi/actions/runs/27088421514"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "3.2-0",
      "date": "2026-06-07T09:25:27.000Z",
      "distro": "noble",
      "arch": "x86_64",
      "commit": "cf04539ae6f19a8523b72d0d084b7502f71ea41e",
      "fileid": "04278262366c81f9cc3c7f12f18b9ecd43f1ef9433c76d56acbb43f5de7f7b15",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/rvalavi/actions/runs/27088421514"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "3.2-0",
      "date": "2026-06-07T09:24:17.000Z",
      "arch": "aarch64",
      "commit": "cf04539ae6f19a8523b72d0d084b7502f71ea41e",
      "fileid": "cb9821ebc4f96eee41ce1dc74236d3885748fa131bba19114df9d1d538e0540e",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/rvalavi/actions/runs/27088421514"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "3.2-0",
      "date": "2026-06-07T09:25:52.000Z",
      "arch": "x86_64",
      "commit": "cf04539ae6f19a8523b72d0d084b7502f71ea41e",
      "fileid": "1891d69969fa13e3a9f97f4d1776c22b7255ee5c24c4b8fce597b3d5992bb4c0",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/rvalavi/actions/runs/27088421514"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "3.2-0",
      "date": "2026-06-07T09:24:49.000Z",
      "arch": "aarch64",
      "commit": "cf04539ae6f19a8523b72d0d084b7502f71ea41e",
      "fileid": "07ae83b90f62e266c1e6b9c83871f87e5298dc1f64577b83d2226b04ef45292c",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/rvalavi/actions/runs/27088421514"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "3.2-0",
      "date": "2026-06-07T09:25:45.000Z",
      "arch": "x86_64",
      "commit": "cf04539ae6f19a8523b72d0d084b7502f71ea41e",
      "fileid": "1eaa0d410d2499101f01a39051824e9a2ae0d59db924b2813d81a1eb0d8f103c",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/rvalavi/actions/runs/27088421514"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "3.2-0",
      "date": "2026-06-07T09:25:27.000Z",
      "arch": "emscripten",
      "commit": "cf04539ae6f19a8523b72d0d084b7502f71ea41e",
      "fileid": "a7818c2d3fd6ad00fcfe1a70104293a8ef131b111590a46beca41d3b9f0c18db",
      "status": "success",
      "buildurl": "https://github.com/r-universe/rvalavi/actions/runs/27088421514"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "3.2-0",
      "date": "2026-06-07T09:24:11.000Z",
      "arch": "x86_64",
      "commit": "cf04539ae6f19a8523b72d0d084b7502f71ea41e",
      "fileid": "290b37c2a06f5edfe8c61e4b12af54f3f24c9f11ab4dce16f4aa40a25bd4e83c",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/rvalavi/actions/runs/27088421514"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "3.2-0",
      "date": "2026-06-07T09:24:03.000Z",
      "arch": "x86_64",
      "commit": "cf04539ae6f19a8523b72d0d084b7502f71ea41e",
      "fileid": "ffcca1a606ec718bab6afc6b1aa07a6b0e951dbf7c0257970deb40f4e2833693",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/rvalavi/actions/runs/27088421514"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "3.2-0",
      "date": "2026-06-07T09:23:59.000Z",
      "arch": "x86_64",
      "commit": "cf04539ae6f19a8523b72d0d084b7502f71ea41e",
      "fileid": "760bac06ff97734a5d232fd97f01ce005e87e12741a5e7dfbb96a36aaa60aad5",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/rvalavi/actions/runs/27088421514"
    }
  ]
}