{
  "_id": "6ad2204f475807f7554a5ea8",
  "Package": "trafficCAR",
  "Type": "Package",
  "Title": "Bayesian CAR Models for Road-Segment Traffic",
  "Version": "0.1.1",
  "Authors@R": "c(\nperson(\n\"Madison\", \"Ell\",\nemail = \"mell@stat.tamu.edu\",\nrole = c(\"aut\", \"cre\")\n)\n)",
  "Author": "Madison Ell [aut, cre]",
  "Maintainer": "Madison Ell <mell@stat.tamu.edu>",
  "Description": "Tools for simulating and modeling traffic flow on road\nnetworks using spatial conditional autoregressive (CAR) models.\nThe package represents road systems as graphs derived from\n'OpenStreetMap' data <https://www.openstreetmap.org/> and\nsupports network-based spatial dependence, basic preprocessing,\nand visualization for spatial traffic analysis.",
  "License": "MIT + file LICENSE",
  "Encoding": "UTF-8",
  "LazyData": "true",
  "LazyDataCompression": "xz",
  "Config/testthat/edition": "3",
  "VignetteBuilder": "knitr",
  "RoxygenNote": "7.3.3",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-10-16 12:46:07 UTC",
    "User": "root"
  },
  "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://cranhaven.r-universe.dev",
  "Date/Publication": "2026-10-16 03:02:00 UTC",
  "RemoteUrl": "https://github.com/cranhaven/cranhaven.r-universe.dev",
  "RemoteRef": "package/trafficCAR",
  "RemoteSha": "b6841abb6494f415beef269c6972e1acd67d8df1",
  "RemoteSubdir": "trafficCAR",
  "_user": "cranhaven",
  "_type": "src",
  "_file": "trafficCAR_0.1.1.tar.gz",
  "_fileid": "https://r2.ropensci.org/b7e0bf711dde1a535d201ddba1bfd50c5fd8f96a6ef6423b376ce141e6b2b61a",
  "_filesize": 841922,
  "_sha256": "b7e0bf711dde1a535d201ddba1bfd50c5fd8f96a6ef6423b376ce141e6b2b61a",
  "_expires": "2027-01-24T13:02:05.000Z",
  "_created": "2026-10-16T12:46:07.000Z",
  "_published": "2026-10-16T17:34:55.158Z",
  "_buildurl": "https://github.com/r-universe/cranhaven/actions/runs/38902296332",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_jobs": [
    {
      "job": 116979273984,
      "time": 152,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "12046343970"
    },
    {
      "job": 116979273849,
      "time": 151,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12046493067"
    },
    {
      "job": 116979273749,
      "time": 127,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "12046974181"
    },
    {
      "job": 116979273808,
      "time": 123,
      "config": "macos-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12048090129"
    },
    {
      "job": 116977374449,
      "time": 283,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12046687736"
    },
    {
      "job": 116979273773,
      "time": 132,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "12046987279"
    },
    {
      "job": 116979273851,
      "time": 112,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "12046333028"
    },
    {
      "job": 116979273738,
      "time": 102,
      "config": "windows-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "12047206714"
    },
    {
      "job": 116979273764,
      "time": 118,
      "config": "windows-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12046996558"
    }
  ],
  "_upstream": "https://github.com/cranhaven/cranhaven.r-universe.dev",
  "_commit": {
    "id": "b6841abb6494f415beef269c6972e1acd67d8df1",
    "author": "GitHub Action <action@github.com>",
    "committer": "GitHub Action <action@github.com>",
    "message": "Add trafficCAR to CRANhaven, because archived on 2026-10-16 03:02:00 +0000\n",
    "time": 1792119720
  },
  "_maintainer": {
    "name": "Madison Ell",
    "email": "mell@stat.tamu.edu"
  },
  "_distro": "resolute",
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 3.5",
      "role": "Depends"
    },
    {
      "package": "sf",
      "role": "Imports"
    },
    {
      "package": "igraph",
      "role": "Imports"
    },
    {
      "package": "Matrix",
      "role": "Imports"
    },
    {
      "package": "methods",
      "role": "Imports"
    },
    {
      "package": "units",
      "role": "Imports"
    },
    {
      "package": "stats",
      "role": "Imports"
    },
    {
      "package": "graphics",
      "role": "Imports"
    },
    {
      "package": "rlang",
      "role": "Imports"
    },
    {
      "package": "posterior",
      "role": "Imports"
    },
    {
      "package": "ggplot2",
      "role": "Imports"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "microbenchmark",
      "role": "Suggests"
    },
    {
      "package": "osmdata",
      "role": "Suggests"
    },
    {
      "package": "lwgeom",
      "role": "Suggests"
    },
    {
      "package": "leaflet",
      "role": "Suggests"
    },
    {
      "package": "viridisLite",
      "role": "Suggests"
    },
    {
      "package": "htmltools",
      "role": "Suggests"
    },
    {
      "package": "usethis",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "version": ">= 3.0.0",
      "role": "Suggests"
    }
  ],
  "_owner": "cranhaven",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2026-42",
      "n": 1
    }
  ],
  "_tags": [],
  "_topics": [
    "archived",
    "packages",
    "r-universe"
  ],
  "_stars": 5,
  "_contributors": [
    {
      "user": "henrikbengtsson",
      "count": 183,
      "uuid": 1616850
    }
  ],
  "_userbio": {
    "uuid": 161993010,
    "type": "organization",
    "name": "cranhaven",
    "followers": 3,
    "description": "CRANhaven - Repository for Recently Archived CRAN Packages"
  },
  "_downloads": {
    "count": 312,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/trafficCAR"
  },
  "_devurl": "https://github.com/cranhaven/cranhaven.r-universe.dev",
  "_searchresults": 0,
  "_rbuild": "4.6.1",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/manual.pdf",
    "extra/readme.html",
    "extra/readme.md",
    "extra/trafficCAR.html",
    "LICENSE"
  ],
  "_realowner": "cran",
  "_cranurl": false,
  "_releases": [
    {
      "version": "0.1.0",
      "date": "2026-01-27"
    },
    {
      "version": "0.1.1",
      "date": "2026-03-30"
    }
  ],
  "_exports": [
    "augment_roads",
    "build_adjacency",
    "build_network",
    "car_precision",
    "fetch_osm_roads",
    "fit_car",
    "fit_traffic",
    "icar_sum_to_zero",
    "intrinsic_car_precision",
    "map_roads_interactive",
    "map_roads_interactive_layers",
    "moran_residuals",
    "plot_mcmc_diagnostics",
    "plot_observed_fitted",
    "plot_predicted",
    "plot_relative_congestion",
    "plot_roads_static",
    "plot_traffic_map",
    "ppc_summary",
    "roads_to_segments",
    "sample_proper_car",
    "simplify_network",
    "weights_from_adjacency"
  ],
  "_datasets": [
    {
      "name": "roads_small",
      "title": "Example road network datasets",
      "object": "roads_small",
      "class": [
        "sf",
        "data.frame"
      ],
      "fields": [
        "osm_id",
        "name",
        "NHS",
        "Texas_Trunk_System",
        "access",
        "alt_name",
        "area",
        "bridge",
        "crossing",
        "crossing.markings",
        "destination",
        "destination.ref",
        "destination.street",
        "emergency",
        "expressway",
        "footway",
        "frontage_road",
        "golf",
        "hgv",
        "hgv.national_network",
        "highway",
        "lane_markings",
        "lanes",
        "lanes.backward",
        "lanes.both_ways",
        "lanes.forward",
        "layer",
        "lit",
        "maxheight",
        "maxspeed",
        "name_1",
        "noname",
        "old_name",
        "old_ref",
        "oneway",
        "postal_code",
        "ref",
        "service",
        "source",
        "source.Texas_Trunk_System",
        "source.hgv",
        "source.hgv.national_network",
        "surface",
        "tiger.cfcc",
        "tiger.county",
        "tiger.name_base",
        "tiger.name_base_1",
        "tiger.name_direction_prefix",
        "tiger.name_direction_suffix",
        "tiger.name_type",
        "tiger.reviewed",
        "tiger.separated",
        "tiger.source",
        "tiger.tlid",
        "tiger.zip_left",
        "tiger.zip_left_1",
        "tiger.zip_left_2",
        "tiger.zip_left_3",
        "tiger.zip_right",
        "tiger.zip_right_1",
        "tiger.zip_right_2",
        "tiger.zip_right_3",
        "tunnel",
        "turn.lanes.both_ways",
        "geometry"
      ],
      "rows": 956,
      "table": false,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "augment_roads",
      "title": "Augment roads with predicted traffic quantities",
      "topics": [
        "augment_roads"
      ]
    },
    {
      "page": "build_adjacency",
      "title": "Build segment adjacency from segment geometries",
      "topics": [
        "build_adjacency"
      ]
    },
    {
      "page": "build_network",
      "title": "Build a road network graph from sf LINESTRING data",
      "topics": [
        "build_network"
      ]
    },
    {
      "page": "car_precision",
      "title": "CAR precision matrix from an adjacency matrix",
      "topics": [
        "car_precision"
      ]
    },
    {
      "page": "fetch_osm_roads",
      "title": "Fetch road geometries from OpenStreetMap",
      "topics": [
        "fetch_osm_roads"
      ]
    },
    {
      "page": "fit_car",
      "title": "Fit Gaussian CAR / ICAR regression via Gibbs sampling",
      "topics": [
        "fit_car"
      ]
    },
    {
      "page": "fit_traffic",
      "title": "Fit a Gaussian CAR traffic model (speed or travel time)",
      "topics": [
        "fit_traffic"
      ]
    },
    {
      "page": "icar_sum_to_zero",
      "title": "Apply sum-to-zero constraint to ICAR precision",
      "topics": [
        "icar_sum_to_zero"
      ]
    },
    {
      "page": "intrinsic_car_precision",
      "title": "Intrinsic CAR (ICAR) precision matrix",
      "topics": [
        "intrinsic_car_precision"
      ]
    },
    {
      "page": "map_roads_interactive",
      "title": "Interactive map of road-segment traffic measures",
      "topics": [
        "map_roads_interactive"
      ]
    },
    {
      "page": "map_roads_interactive_layers",
      "title": "Interactive map with multiple standard traffic layers",
      "topics": [
        "map_roads_interactive_layers"
      ]
    },
    {
      "page": "moran_residuals",
      "title": "Moran's I for trafficCAR residuals",
      "topics": [
        "moran_residuals"
      ]
    },
    {
      "page": "plot_mcmc_diagnostics",
      "title": "MCMC diagnostic plots",
      "topics": [
        "plot_mcmc_diagnostics"
      ]
    },
    {
      "page": "plot_observed_fitted",
      "title": "Plot observed vs predicted traffic values",
      "topics": [
        "plot_observed_fitted"
      ]
    },
    {
      "page": "plot_predicted",
      "title": "Plot predicted traffic outcome on road network",
      "topics": [
        "plot_predicted"
      ]
    },
    {
      "page": "plot_relative_congestion",
      "title": "Plot relative congestion on road network",
      "topics": [
        "plot_relative_congestion"
      ]
    },
    {
      "page": "plot_roads_static",
      "title": "Static map of road-segment traffic measures",
      "topics": [
        "plot_roads_static"
      ]
    },
    {
      "page": "plot_traffic_map",
      "title": "Quick map helper for augmented roads",
      "topics": [
        "plot_traffic_map"
      ]
    },
    {
      "page": "ppc_summary",
      "title": "Posterior predictive checks for trafficCAR fits",
      "topics": [
        "ppc_summary"
      ]
    },
    {
      "page": "residuals.traffic_fit",
      "title": "Residuals for trafficCAR fits",
      "topics": [
        "residuals.traffic_fit"
      ]
    },
    {
      "page": "roads_datasets",
      "title": "Example road network datasets",
      "topics": [
        "roads_cstat",
        "roads_datasets",
        "roads_small"
      ]
    },
    {
      "page": "roads_to_segments",
      "title": "Convert road geometries to modeling segments",
      "topics": [
        "roads_to_segments"
      ]
    },
    {
      "page": "sample_proper_car",
      "title": "Gibbs sampler for a proper CAR latent Gaussian model",
      "topics": [
        "sample_proper_car"
      ]
    },
    {
      "page": "simplify_network",
      "title": "Simplify a built network object by removing parallel edges (and loops)",
      "topics": [
        "simplify_network"
      ]
    },
    {
      "page": "weights_from_adjacency",
      "title": "Construct spatial weights matrix",
      "topics": [
        "weights_from_adjacency"
      ]
    }
  ],
  "_readme": "https://github.com/cranhaven/cranhaven.r-universe.dev/raw/package/trafficCAR/trafficCAR/README.md",
  "_rundeps": [
    "abind",
    "backports",
    "checkmate",
    "class",
    "classInt",
    "cli",
    "cpp11",
    "DBI",
    "distributional",
    "e1071",
    "farver",
    "generics",
    "ggplot2",
    "glue",
    "gtable",
    "igraph",
    "isoband",
    "KernSmooth",
    "labeling",
    "lattice",
    "lifecycle",
    "magrittr",
    "Matrix",
    "matrixStats",
    "numDeriv",
    "pillar",
    "pkgconfig",
    "posterior",
    "proxy",
    "R6",
    "RColorBrewer",
    "Rcpp",
    "rlang",
    "s2",
    "S7",
    "scales",
    "sf",
    "tensorA",
    "tibble",
    "units",
    "utf8",
    "vctrs",
    "viridisLite",
    "withr",
    "wk"
  ],
  "_vignettes": [
    {
      "source": "CAR-models.Rmd",
      "filename": "CAR-models.html",
      "title": "CAR-models",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Conditional autoregressive (CAR) models",
        "ICAR model",
        "Proper CAR model",
        "Disconnected graphs and isolated nodes",
        "Scaling (Sørbye–Rue)"
      ],
      "created": "2026-10-16 03:02:00",
      "modified": "2026-10-16 03:02:00",
      "commits": 1
    },
    {
      "source": "creating-custom-road-datasets.Rmd",
      "filename": "creating-custom-road-datasets.html",
      "title": "Creating Custom Road Datasets with trafficCAR",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Overview",
        "Step 1: Obtain road data for a city",
        "Step 2: Clean, validate, and inspect geometries",
        "Step 3: Write the dataset to GeoJSON (raw source)",
        "Step 4A: Save as .rds (recommended for user projects)",
        "Step 4B: Convert GeoJSON to .rda (recommended for R packages)",
        "Step 5: Use the dataset in trafficCAR",
        "Organizing multiple city datasets",
        "Example directory layout (package development)",
        "Example data-raw script",
        "Using external GeoJSON files directly",
        "Summary"
      ],
      "created": "2026-10-16 03:02:00",
      "modified": "2026-10-16 03:02:00",
      "commits": 1
    },
    {
      "source": "fetch-osm-roads.Rmd",
      "filename": "fetch-osm-roads.html",
      "title": "Fetching OSM roads",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Overview",
        "Fetch by place name",
        "Fetch by bounding box",
        "Filtering the OSM query"
      ],
      "created": "2026-10-16 03:02:00",
      "modified": "2026-10-16 03:02:00",
      "commits": 1
    },
    {
      "source": "plot-model-fit-diagnostics-spatial.Rmd",
      "filename": "plot-model-fit-diagnostics-spatial.html",
      "title": "Plotting model fit, diagnostics, and spatial patterns",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Load data and build segment adjacency",
        "Simulate an outcome and fit a CAR model",
        "Prepare a plotting-ready fit object",
        "Plot observed vs fitted values",
        "Plot MCMC diagnostics",
        "Plot spatial predictions",
        "Tips for applied workflows"
      ],
      "created": "2026-10-16 03:02:00",
      "modified": "2026-10-16 03:02:00",
      "commits": 1
    },
    {
      "source": "sampling.Rmd",
      "filename": "sampling.html",
      "title": "Sampling from Gaussian CAR and ICAR Models",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Purpose",
        "CAR and ICAR precision matrices",
        "A small graph example",
        "Proper CAR",
        "ICAR",
        "Sampling from a sparse precision matrix",
        "Zero-mean sampling",
        "Nonzero mean (linear term)",
        "Notes on ICAR sampling",
        "A road-like graph example",
        "Option 2: Synthetic road-like graph (fallback)",
        "CAR/ICAR sampling on the road graph",
        "Summary"
      ],
      "created": "2026-10-16 03:02:00",
      "modified": "2026-10-16 03:02:00",
      "commits": 1
    },
    {
      "source": "traffic-flow.Rmd",
      "filename": "traffic-flow.html",
      "title": "traffic-flow",
      "engine": "knitr::rmarkdown",
      "headings": [],
      "created": "2026-10-16 03:02:00",
      "modified": "2026-10-16 03:02:00",
      "commits": 1
    },
    {
      "source": "model_diagnostics_and_checking.Rmd",
      "filename": "model_diagnostics_and_checking.html",
      "title": "trafficCAR Model Diagnostics and Checking",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Residual diagnostics",
        "Moran’s I on residuals",
        "Posterior predictive checks",
        "Practical workflow",
        "Limitations"
      ],
      "created": "2026-10-16 03:02:00",
      "modified": "2026-10-16 03:02:00",
      "commits": 1
    },
    {
      "source": "trafficCAR-intro.Rmd",
      "filename": "trafficCAR-intro.html",
      "title": "trafficCAR-intro",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Introduction",
        "Load the package and example data",
        "Build a road network graph",
        "Spatial weights from the adjacency matrix",
        "CAR and ICAR precision matrices",
        "Sampling from a CAR precision matrix",
        "Interactive road visualizations",
        "Takeaways",
        "Further directions"
      ],
      "created": "2026-10-16 03:02:00",
      "modified": "2026-10-16 03:02:00",
      "commits": 1
    }
  ],
  "_score": 4.301029995663981,
  "_indexed": false,
  "_nocasepkg": "trafficcar",
  "_universes": [
    "cranhaven"
  ],
  "_indexurl": "https://cran.r-universe.dev/trafficCAR",
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.1.1",
      "date": "2026-10-16T12:48:30.000Z",
      "distro": "resolute",
      "commit": "b6841abb6494f415beef269c6972e1acd67d8df1",
      "fileid": "https://r2.ropensci.org/ee6e094fc54335ed60fb02988f8d5aade4c5fdc9b5cb8c1acb553c2b1192fb9c",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cranhaven/actions/runs/38902296332"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "0.1.1",
      "date": "2026-10-16T12:48:30.000Z",
      "distro": "resolute",
      "commit": "b6841abb6494f415beef269c6972e1acd67d8df1",
      "fileid": "https://r2.ropensci.org/eacbeea9b42029cd429810a27048f328ff02f8172362ba936cadbc07680380c6",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cranhaven/actions/runs/38902296332"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.1.1",
      "date": "2026-10-16T12:59:13.000Z",
      "commit": "b6841abb6494f415beef269c6972e1acd67d8df1",
      "fileid": "https://r2.ropensci.org/b4383a8db93c432efc6bd7194b38671352efee199c99215555611e23117c9c5b",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cranhaven/actions/runs/38902296332"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "0.1.1",
      "date": "2026-10-16T13:01:17.000Z",
      "commit": "b6841abb6494f415beef269c6972e1acd67d8df1",
      "fileid": "https://r2.ropensci.org/7264431432b9319df9bb4f4c18f5bd9eba61bba4fef3fcb840662aaf87fc6778",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cranhaven/actions/runs/38902296332"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.1.1",
      "date": "2026-10-16T12:48:43.000Z",
      "commit": "b6841abb6494f415beef269c6972e1acd67d8df1",
      "fileid": "https://r2.ropensci.org/1a413ceb071fa679206bf03aa2c43ec9140a5e0b6cbb4e51073d1f28d369ab96",
      "status": "success",
      "buildurl": "https://github.com/r-universe/cranhaven/actions/runs/38902296332"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.1.1",
      "date": "2026-10-16T12:47:35.000Z",
      "commit": "b6841abb6494f415beef269c6972e1acd67d8df1",
      "fileid": "https://r2.ropensci.org/c2616f2580d5c2fc19c8581be472cc32caccc25e47fe8500b73f36ba8f99fbd8",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cranhaven/actions/runs/38902296332"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.1.1",
      "date": "2026-10-16T12:47:29.000Z",
      "commit": "b6841abb6494f415beef269c6972e1acd67d8df1",
      "fileid": "https://r2.ropensci.org/db85dafffc5e77506cd8dc3070cee2b4c05ee8f79dfb394a140784f68a95d620",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cranhaven/actions/runs/38902296332"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "0.1.1",
      "date": "2026-10-16T12:47:41.000Z",
      "commit": "b6841abb6494f415beef269c6972e1acd67d8df1",
      "fileid": "https://r2.ropensci.org/628c2d4b81db7310cd3a8b12e4fa2811463e36224fc1969f4f9f6e4744ce0c53",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cranhaven/actions/runs/38902296332"
    }
  ]
}