{
  "_id": "6ab4fb0a3d719c1f8409815c",
  "Package": "sfclust",
  "Title": "Bayesian Spatial Functional Clustering",
  "Version": "1.1.1",
  "Authors@R": "c(\nperson(c(\"Erick\", \"A.\"), \"Chacón-Montalván\", ,\"erick.chaconmontalvan@wur.nl\", role = c(\"aut\", \"cre\"),\ncomment = c(ORCID = \"0000-0001-8068-1034\")),\nperson(\"Ruiman\", \"Zhong\", ,\"ruiman.zhong@kaust.edu.sa\", role = c(\"aut\"),\ncomment = c(ORCID = \"0000-0002-4681-9199\")),\nperson(\"Paula\", \"Moraga\", ,\"paula.moraga@kaust.edu.sa\", role = c(\"aut\"),\ncomment = c(ORCID = \"0000-0001-5266-0201\"))\n)",
  "Description": "Bayesian clustering of spatial regions with similar\nfunctional shapes using spanning trees and latent Gaussian\nmodels. The method enforces spatial contiguity within clusters\nand supports a wide range of latent Gaussian models, including\nnon-Gaussian likelihoods, via the R-INLA framework. The\nalgorithm is based on Zhong, R., Chacón-Montalván, E. A., and\nMoraga, P. (2026) <doi:10.1002/sim.70597>, extending the\napproach of Zhang, B., Sang, H., Luo, Z. T., and Huang, H.\n(2023) <doi:10.1214/22-AOAS1643>. The package includes tools\nfor model fitting, convergence diagnostics, visualization, and\nsummarization of clustering results.",
  "License": "MIT + file LICENSE",
  "URL": "https://erickchacon.github.io/sfclust/,\nhttps://github.com/ErickChacon/sfclust",
  "BugReports": "https://github.com/ErickChacon/sfclust/issues",
  "Encoding": "UTF-8",
  "Roxygen": "list(markdown = TRUE)",
  "Additional_repositories": "https://inla.r-inla-download.org/R/stable",
  "Config/testthat/edition": "3",
  "VignetteBuilder": "knitr",
  "LazyData": "true",
  "Config/Needs/website": "rmarkdown, fda, maps, pbs",
  "Config/roxygen2/version": "8.0.0",
  "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://erickchacon.r-universe.dev",
  "Date/Publication": "2026-09-24 09:31:08 UTC",
  "RemoteUrl": "https://github.com/erickchacon/sfclust",
  "RemoteRef": "HEAD",
  "RemoteSha": "f498e4fe97a158658cf364ca3d6c1d9b38ef006d",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-09-24 10:20:06 UTC",
    "User": "root"
  },
  "Author": "Erick A. Chacón-Montalván [aut, cre] (ORCID:\n<https://orcid.org/0000-0001-8068-1034>),\nRuiman Zhong [aut] (ORCID: <https://orcid.org/0000-0002-4681-9199>),\nPaula Moraga [aut] (ORCID: <https://orcid.org/0000-0001-5266-0201>)",
  "Maintainer": "Erick A. Chacón-Montalván <erick.chaconmontalvan@wur.nl>",
  "_user": "erickchacon",
  "_type": "src",
  "_file": "sfclust_1.1.1.tar.gz",
  "_fileid": "https://r2.ropensci.org/a7513590079535069a9a83c58f667d83008089d032850d7d47cd7708594c47ab",
  "_filesize": 7683189,
  "_sha256": "a7513590079535069a9a83c58f667d83008089d032850d7d47cd7708594c47ab",
  "_expires": "2027-01-02T10:27:19.000Z",
  "_created": "2026-09-24T10:20:06.000Z",
  "_published": "2026-09-24T10:27:21.923Z",
  "_jobs": [
    {
      "job": 107590802274,
      "time": 273,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "10802438501"
    },
    {
      "job": 107590802314,
      "time": 233,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "10802338600"
    },
    {
      "job": 107590802329,
      "time": 190,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "ERROR",
      "artifact": "10801869017"
    },
    {
      "job": 107590802446,
      "time": 267,
      "config": "macos-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "10802443670"
    },
    {
      "job": 107589226823,
      "time": 300,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "10801939825"
    },
    {
      "job": 107590802266,
      "time": 165,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "10801599739"
    },
    {
      "job": 107590802281,
      "time": 243,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "10802667002"
    },
    {
      "job": 107590802425,
      "time": 137,
      "config": "windows-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "10802925215"
    },
    {
      "job": 107590802334,
      "time": 260,
      "config": "windows-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "10802189566"
    }
  ],
  "_host": "GitHub-Actions",
  "_buildurl": "https://github.com/r-universe/erickchacon/actions/runs/35986133762",
  "_status": "success",
  "_upstream": "https://github.com/erickchacon/sfclust",
  "_commit": {
    "id": "f498e4fe97a158658cf364ca3d6c1d9b38ef006d",
    "author": "Erick <eral.th07@gmail.com>",
    "committer": "Erick <eral.th07@gmail.com>",
    "message": "ready for cran submission\n",
    "time": 1790242268
  },
  "_maintainer": {
    "name": "Erick A. Chacón-Montalván",
    "email": "erick.chaconmontalvan@wur.nl",
    "orcid": "0000-0001-8068-1034"
  },
  "_distro": "resolute",
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 4.1.0",
      "role": "Depends"
    },
    {
      "package": "igraph",
      "role": "Imports"
    },
    {
      "package": "sf",
      "role": "Imports"
    },
    {
      "package": "SparseM",
      "role": "Imports"
    },
    {
      "package": "stars",
      "role": "Imports"
    },
    {
      "package": "dplyr",
      "role": "Imports"
    },
    {
      "package": "methods",
      "role": "Imports"
    },
    {
      "package": "Matrix",
      "role": "Imports"
    },
    {
      "package": "ggplot2",
      "role": "Imports"
    },
    {
      "package": "patchwork",
      "role": "Imports"
    },
    {
      "package": "ggraph",
      "role": "Suggests"
    },
    {
      "package": "here",
      "role": "Suggests"
    },
    {
      "package": "INLA",
      "role": "Suggests"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "version": ">= 3.0.0",
      "role": "Suggests"
    }
  ],
  "_owner": "erickchacon",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2026-23",
      "n": 11
    },
    {
      "week": "2026-31",
      "n": 6
    },
    {
      "week": "2026-36",
      "n": 2
    },
    {
      "week": "2026-38",
      "n": 5
    },
    {
      "week": "2026-39",
      "n": 5
    }
  ],
  "_tags": [
    {
      "name": "v1.0.2",
      "date": "2026-06-04"
    },
    {
      "name": "v1.1.0",
      "date": "2026-07-28"
    }
  ],
  "_stars": 3,
  "_contributors": [
    {
      "user": "erickchacon",
      "count": 222,
      "uuid": 7862458
    },
    {
      "user": "ruimanzhong",
      "count": 62,
      "uuid": 99601121
    },
    {
      "user": "servis",
      "count": 2,
      "uuid": 3391351
    }
  ],
  "_userbio": {
    "uuid": 7862458,
    "type": "user",
    "name": "Dr. Erick A. Chacón Montalván",
    "followers": 51,
    "description": "Researcher in Spatial Statistics"
  },
  "_downloads": {
    "count": 401,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/sfclust"
  },
  "_devurl": "https://github.com/erickchacon/sfclust",
  "_pkgdown": "https://erickchacon.github.io/sfclust/",
  "_searchresults": 32,
  "_rbuild": "4.6.1",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/manual.pdf",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "extra/sfclust.html",
    "LICENSE"
  ],
  "_homeurl": "https://github.com/erickchacon/sfclust",
  "_realowner": "erickchacon",
  "_cranurl": true,
  "_releases": [
    {
      "version": "1.0.1",
      "date": "2025-05-19"
    },
    {
      "version": "1.1.0",
      "date": "2026-07-28"
    }
  ],
  "_exports": [
    "data_all",
    "genclust",
    "plot_clusters_fitted",
    "plot_clusters_map",
    "plot_clusters_series",
    "plot_log_mlik",
    "sfclust"
  ],
  "_datasets": [
    {
      "name": "chapa",
      "title": "Spatio-temporal NDWI2 raster data from El Chaparrillo",
      "object": "chapa",
      "class": [
        "stars"
      ],
      "fields": [],
      "table": true,
      "tojson": false
    },
    {
      "name": "stbinom",
      "title": "Spatio-temporal Binomial data",
      "object": "stbinom",
      "class": [
        "stars"
      ],
      "fields": [],
      "table": true,
      "tojson": false
    },
    {
      "name": "stgaus",
      "title": "Spatio-temporal Gaussian data",
      "object": "stgaus",
      "class": [
        "stars"
      ],
      "fields": [],
      "table": true,
      "tojson": false
    }
  ],
  "_help": [
    {
      "page": "chapa",
      "title": "Spatio-temporal NDWI2 raster data from El Chaparrillo",
      "topics": [
        "chapa"
      ]
    },
    {
      "page": "data_all",
      "title": "Prepare data in long format",
      "topics": [
        "data_all"
      ]
    },
    {
      "page": "filter_df",
      "title": "Filter a long-format data frame to valid spatial cells",
      "topics": [
        "filter_df"
      ]
    },
    {
      "page": "fitted.sfclust",
      "title": "Fitted Values for 'sfclust' Objects",
      "topics": [
        "fitted.sfclust"
      ]
    },
    {
      "page": "genclust",
      "title": "Generate initial cluster assignments",
      "topics": [
        "genclust",
        "genclust.default",
        "genclust.Matrix",
        "genclust.matrix",
        "genclust.stars"
      ]
    },
    {
      "page": "log_mlik_all",
      "title": "Fit models and compute the log marginal likelihood for all clusters",
      "topics": [
        "log_mlik_all"
      ]
    },
    {
      "page": "plot_clusters_fitted",
      "title": "Plot functional shapes of cluster linear predictors",
      "topics": [
        "plot_clusters_fitted"
      ]
    },
    {
      "page": "plot_clusters_map",
      "title": "Plot a spatial map of cluster assignments",
      "topics": [
        "plot_clusters_map"
      ]
    },
    {
      "page": "plot_clusters_series",
      "title": "Plot observed time series by cluster",
      "topics": [
        "plot_clusters_series"
      ]
    },
    {
      "page": "plot_log_mlik",
      "title": "Plot log marginal likelihood convergence trace",
      "topics": [
        "plot_log_mlik"
      ]
    },
    {
      "page": "plot.sfclust",
      "title": "Plot function for 'sfclust' objects",
      "topics": [
        "plot.sfclust"
      ]
    },
    {
      "page": "print.sfclust",
      "title": "Print method for sfclust objects",
      "topics": [
        "print.sfclust"
      ]
    },
    {
      "page": "sfclust",
      "title": "Bayesian spatial functional clustering",
      "topics": [
        "sfclust",
        "sfclust.data.frame",
        "sfclust.default",
        "sfclust.stars"
      ]
    },
    {
      "page": "stbinom",
      "title": "Spatio-temporal Binomial data",
      "topics": [
        "stbinom"
      ]
    },
    {
      "page": "stgaus",
      "title": "Spatio-temporal Gaussian data",
      "topics": [
        "stgaus"
      ]
    },
    {
      "page": "summary.sfclust",
      "title": "Summary method for sfclust objects",
      "topics": [
        "summary.sfclust"
      ]
    },
    {
      "page": "update.sfclust",
      "title": "Update MCMC Clustering Procedure",
      "topics": [
        "update.sfclust"
      ]
    }
  ],
  "_readme": "https://github.com/erickchacon/sfclust/raw/HEAD/README.md",
  "_rundeps": [
    "abind",
    "class",
    "classInt",
    "cli",
    "cpp11",
    "DBI",
    "dplyr",
    "e1071",
    "farver",
    "generics",
    "ggplot2",
    "glue",
    "gtable",
    "igraph",
    "isoband",
    "KernSmooth",
    "labeling",
    "lattice",
    "lifecycle",
    "magrittr",
    "Matrix",
    "patchwork",
    "pillar",
    "pkgconfig",
    "proxy",
    "R6",
    "RColorBrewer",
    "Rcpp",
    "rlang",
    "s2",
    "S7",
    "scales",
    "sf",
    "SparseM",
    "stars",
    "tibble",
    "tidyselect",
    "units",
    "utf8",
    "vctrs",
    "viridisLite",
    "withr",
    "wk"
  ],
  "_vignettes": [
    {
      "source": "vg02-advanced-features.Rmd",
      "filename": "vg02-advanced-features.html",
      "title": "Advanced features",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Packages",
        "Data",
        "Clustering",
        "Model",
        "INLA integration",
        "Penalizing the number of clusters",
        "Save options",
        "Sampling with sfclust",
        "Continue sampling",
        "Results"
      ],
      "created": "2025-05-29 09:46:29",
      "modified": "2026-09-24 09:07:26",
      "commits": 7
    },
    {
      "source": "vg01-stars-object.Rmd",
      "filename": "vg01-stars-object.html",
      "title": "Create a stars dataset",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Simulated data",
        "Creating a stars object",
        "Manipulating a stars object"
      ],
      "created": "2025-05-29 09:46:29",
      "modified": "2026-07-28 11:58:45",
      "commits": 2
    },
    {
      "source": "vg03-data-frame.Rmd",
      "filename": "vg03-data-frame.html",
      "title": "Data frame interface",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Data structure",
        "Adjacency matrix",
        "Clustering",
        "Results"
      ],
      "created": "2026-07-28 11:58:45",
      "modified": "2026-07-28 11:58:45",
      "commits": 1
    },
    {
      "source": "sfclust.Rmd",
      "filename": "sfclust.html",
      "title": "Introduction to sfclust",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Packages",
        "Data",
        "Clustering",
        "Model",
        "Sampling with sfclust",
        "Basic methods",
        "Print",
        "Plot",
        "Summary",
        "Fitted values"
      ],
      "created": "2025-05-29 09:03:06",
      "modified": "2026-07-28 11:58:45",
      "commits": 5
    }
  ],
  "_score": 6.28330122870355,
  "_indexed": true,
  "_nocasepkg": "sfclust",
  "_universes": [
    "erickchacon"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.1.1",
      "date": "2026-09-24T10:23:01.000Z",
      "distro": "resolute",
      "commit": "f498e4fe97a158658cf364ca3d6c1d9b38ef006d",
      "fileid": "https://r2.ropensci.org/5a5ae60eb94c693a78bc2f964bf93f106c62c878be4ea82223c48fea43e42129",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/erickchacon/actions/runs/35986133762"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "1.1.1",
      "date": "2026-09-24T10:23:08.000Z",
      "distro": "resolute",
      "commit": "f498e4fe97a158658cf364ca3d6c1d9b38ef006d",
      "fileid": "https://r2.ropensci.org/77a1c305a3f4fac00c95109bb18ccf52b461fdf33a6b78891952911e75a32c73",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/erickchacon/actions/runs/35986133762"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "1.1.1",
      "date": "2026-09-24T10:24:04.000Z",
      "commit": "f498e4fe97a158658cf364ca3d6c1d9b38ef006d",
      "fileid": "https://r2.ropensci.org/36007d4fd708615f6bf1ace1aa342b03d82c2246468c1c324a23c0bc3a1c74df",
      "status": "failure",
      "check": "ERROR",
      "buildurl": "https://github.com/r-universe/erickchacon/actions/runs/35986133762"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "1.1.1",
      "date": "2026-09-24T10:23:05.000Z",
      "commit": "f498e4fe97a158658cf364ca3d6c1d9b38ef006d",
      "fileid": "https://r2.ropensci.org/12949db1f6dd8dfd472dbd38602c0069a82ef92fd20fde166c9d08cb90b2b2e1",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/erickchacon/actions/runs/35986133762"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "1.1.1",
      "date": "2026-09-24T10:23:14.000Z",
      "commit": "f498e4fe97a158658cf364ca3d6c1d9b38ef006d",
      "fileid": "https://r2.ropensci.org/528ca11abbeb3fc5ad12c019c5544581ce0e6186b40a04b34646ae0771f78d38",
      "status": "success",
      "buildurl": "https://github.com/r-universe/erickchacon/actions/runs/35986133762"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "1.1.1",
      "date": "2026-09-24T10:21:42.000Z",
      "commit": "f498e4fe97a158658cf364ca3d6c1d9b38ef006d",
      "fileid": "https://r2.ropensci.org/09f0d2f80dc6dba433363eec22d8ee6cdbc07965c85d4158ccb99b5c4a3637cd",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/erickchacon/actions/runs/35986133762"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "1.1.1",
      "date": "2026-09-24T10:21:48.000Z",
      "commit": "f498e4fe97a158658cf364ca3d6c1d9b38ef006d",
      "fileid": "https://r2.ropensci.org/636c6c291f90a3ec7f10202a75dd24aa2a676b1a825a41e149894ae02f3db240",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/erickchacon/actions/runs/35986133762"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "1.1.1",
      "date": "2026-09-24T10:21:46.000Z",
      "commit": "f498e4fe97a158658cf364ca3d6c1d9b38ef006d",
      "fileid": "https://r2.ropensci.org/4298b001c4c0125aca325753d5469d6f3ab79595c64e8609e798ce4840d71dbc",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/erickchacon/actions/runs/35986133762"
    }
  ]
}