{
  "_id": "6a212e86cd65a98ecbd24179",
  "Package": "datasusr",
  "Type": "Package",
  "Title": "Fast Access to Brazilian Public Health Data from 'DATASUS'",
  "Version": "0.1.0",
  "Authors@R": "c(\nperson(\"Andre\", \"Leite\", email = \"leite@castlab.org\", role = c(\"aut\", \"cre\")),\nperson(\"Marcos\", \"Wasilew\", email = \"marcos.wasilew@gmail.com\", role = \"aut\"),\nperson(\"Hugo\", \"Vasconcelos\", email = \"hugo.vasconcelos@ufpe.br\", role = \"aut\"),\nperson(\"Carlos\", \"Amorin\", email = \"carlos.agaf@ufpe.br\", role = \"aut\"),\nperson(\"Diogo\", \"Bezerra\", email = \"diogo.bezerra@ufpe.br\", role = \"aut\"),\nperson(\"Mark\", \"Adler\", role = c(\"ctb\", \"cph\"),\ncomment = \"Author of bundled blast.c and blast.h from zlib contrib/blast\"))",
  "Description": "Provides fast, in-memory reading of 'DATASUS' 'DBC' files\nusing native 'C' code, along with a catalog of public health\ndata sources, 'FTP' file discovery, caching downloads, and a\nhigh-level datasus_fetch() function that lists, downloads, and\nreads files in a single call. Bundles the 'blast' decompressor\nfrom 'zlib' contrib/blast to decode 'PKWare DCL' compressed\n'DBC' files and parses 'DBF' records directly for efficient\nimport into tibbles. See the 'DATASUS' file transfer site\n<https://datasus.saude.gov.br> and Adler (2003)\n<https://github.com/madler/zlib/tree/master/contrib/blast> for\ndetails on the underlying data and compression format.",
  "License": "MIT + file LICENSE",
  "URL": "https://strategicprojects.github.io/datasusr/,\nhttps://github.com/StrategicProjects/datasusr",
  "BugReports": "https://github.com/StrategicProjects/datasusr/issues",
  "Encoding": "UTF-8",
  "Language": "en-US",
  "VignetteBuilder": "knitr",
  "Config/testthat/edition": "3",
  "Roxygen": "list(markdown = TRUE)",
  "RoxygenNote": "7.3.3",
  "NeedsCompilation": "yes",
  "SystemRequirements": "C99",
  "Config/pak/sysreqs": "libicu-dev libssl-dev",
  "Repository": "https://strategicprojects.r-universe.dev",
  "Date/Publication": "2026-04-29 19:07:35 UTC",
  "RemoteUrl": "https://github.com/strategicprojects/datasusr",
  "RemoteRef": "HEAD",
  "RemoteSha": "233fa68a37348d79be0d216fafd2d58f4f3929ce",
  "Packaged": {
    "Date": "2026-06-04 07:46:27 UTC",
    "User": "root"
  },
  "Author": "Andre Leite [aut, cre],\nMarcos Wasilew [aut],\nHugo Vasconcelos [aut],\nCarlos Amorin [aut],\nDiogo Bezerra [aut],\nMark Adler [ctb, cph] (Author of bundled blast.c and blast.h from zlib\ncontrib/blast)",
  "Maintainer": "Andre Leite <leite@castlab.org>",
  "MD5sum": "56b30aca06cc13e06c306289f10ec347",
  "_user": "strategicprojects",
  "_type": "src",
  "_file": "datasusr_0.1.0.tar.gz",
  "_fileid": "30c265eccfec9db24ed0787e1553c943057e6d84e03ba029c7cd5cf5764898eb",
  "_filesize": 195290,
  "_sha256": "30c265eccfec9db24ed0787e1553c943057e6d84e03ba029c7cd5cf5764898eb",
  "_created": "2026-06-04T07:46:27.000Z",
  "_published": "2026-06-04T07:51:34.114Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 79473189523,
      "time": 157,
      "config": "linux-devel-arm64",
      "r": "4.7.0",
      "check": "NOTE",
      "artifact": "7405882044"
    },
    {
      "job": 79473189335,
      "time": 135,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "NOTE",
      "artifact": "7405872332"
    },
    {
      "job": 79473189520,
      "time": 124,
      "config": "linux-release-arm64",
      "r": "4.6.0",
      "check": "NOTE",
      "artifact": "7405870110"
    },
    {
      "job": 79473189365,
      "time": 127,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "NOTE",
      "artifact": "7405870957"
    },
    {
      "job": 79473189392,
      "time": 87,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "NOTE",
      "artifact": "7405857012"
    },
    {
      "job": 79473189423,
      "time": 260,
      "config": "macos-oldrel-x86_64",
      "r": "4.5.3",
      "check": "NOTE",
      "artifact": "7405913652"
    },
    {
      "job": 79473189372,
      "time": 93,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "NOTE",
      "artifact": "7405858895"
    },
    {
      "job": 79473189434,
      "time": 268,
      "config": "macos-release-x86_64",
      "r": "4.6.0",
      "check": "NOTE",
      "artifact": "7405916732"
    },
    {
      "job": 79472689353,
      "time": 196,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7405827780"
    },
    {
      "job": 79473189390,
      "time": 149,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7405867694"
    },
    {
      "job": 79473189495,
      "time": 88,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "NOTE",
      "artifact": "7405857150"
    },
    {
      "job": 79473189345,
      "time": 98,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "NOTE",
      "artifact": "7405860482"
    },
    {
      "job": 79473189352,
      "time": 95,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "NOTE",
      "artifact": "7405859618"
    }
  ],
  "_buildurl": "https://github.com/r-universe/strategicprojects/actions/runs/26938109791",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/strategicprojects/datasusr",
  "_commit": {
    "id": "233fa68a37348d79be0d216fafd2d58f4f3929ce",
    "author": "André Leite <leite@de.ufpe.br>",
    "committer": "André Leite <leite@de.ufpe.br>",
    "message": "address CRAN review and reposition vs healthbR\n\nDESCRIPTION: single-quote external software/API names ('DATASUS',\n'DBC', 'DBF', 'FTP', 'C', 'PKWare DCL', 'blast', 'zlib') and unquote\nthe in-package datasus_fetch() reference. Add <https:...> references\nfor the upstream data source and the bundled blast decompressor.\n\nExamples: switch every \\dontrun{} to \\donttest{} and wrap network calls\nin tryCatch(). Cache-writing examples use tempdir().\n\nCache: default cache_dir is now file.path(tempdir(), \"datasusr-cache\")\ninstead of tools::R_user_dir(). Persistent cache is opt-in via env var,\noption, or argument.\n\nSite/README/vignette: rewrite the comparison article to compare with\nhealthbR (recommended first choice for broader workflows) and\nmicrodatasus, restructure the pkgdown navbar accordingly, and surface\nthe recommendation in the README.\n\nCo-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>\n",
    "time": 1777489655
  },
  "_maintainer": {
    "name": "Andre Leite",
    "email": "leite@castlab.org"
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 4.1.0",
      "role": "Depends"
    },
    {
      "package": "cli",
      "role": "Imports"
    },
    {
      "package": "curl",
      "version": ">= 5.0.0",
      "role": "Imports"
    },
    {
      "package": "dplyr",
      "version": ">= 1.1.0",
      "role": "Imports"
    },
    {
      "package": "purrr",
      "role": "Imports"
    },
    {
      "package": "rlang",
      "version": ">= 1.0.0",
      "role": "Imports"
    },
    {
      "package": "stringr",
      "role": "Imports"
    },
    {
      "package": "tibble",
      "role": "Imports"
    },
    {
      "package": "tidyr",
      "role": "Imports"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "pkgdown",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "version": ">= 3.0.0",
      "role": "Suggests"
    }
  ],
  "_owner": "strategicprojects",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2026-14",
      "n": 12
    },
    {
      "week": "2026-18",
      "n": 1
    }
  ],
  "_tags": [],
  "_stars": 0,
  "_contributors": [
    {
      "user": "milkway",
      "count": 13,
      "uuid": 7375849
    }
  ],
  "_userbio": {
    "uuid": 127886513,
    "type": "organization",
    "name": "Projetos Estratégicos",
    "description": "Repositório de código da Assessoria Especial de Projetos Estratégicos."
  },
  "_downloads": {
    "count": 290,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/datasusr"
  },
  "_devurl": "https://github.com/strategicprojects/datasusr",
  "_pkgdown": "https://strategicprojects.github.io/datasusr/",
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/datasusr.html",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "manual.pdf"
  ],
  "_homeurl": "https://github.com/strategicprojects/datasusr",
  "_realowner": "strategicprojects",
  "_cranurl": true,
  "_releases": [
    {
      "version": "0.1.0",
      "date": "2026-05-04"
    }
  ],
  "_exports": [
    "datasus_build_path",
    "datasus_cache_clear",
    "datasus_cache_dir",
    "datasus_cache_info",
    "datasus_cache_list",
    "datasus_cache_prune",
    "datasus_docs_url",
    "datasus_download",
    "datasus_fetch",
    "datasus_file_types",
    "datasus_ftp_ls",
    "datasus_get_territory",
    "datasus_list_files",
    "datasus_modalities",
    "datasus_sources",
    "datasus_ufs",
    "format_bytes",
    "read_datasus_dbc"
  ],
  "_help": [
    {
      "page": "datasus_build_path",
      "title": "Build DATASUS FTP paths from filters",
      "topics": [
        "datasus_build_path"
      ]
    },
    {
      "page": "datasus_cache_clear",
      "title": "Clear cached DATASUS files",
      "topics": [
        "datasus_cache_clear"
      ]
    },
    {
      "page": "datasus_cache_dir",
      "title": "Resolve the datasusr cache directory",
      "topics": [
        "datasus_cache_dir"
      ]
    },
    {
      "page": "datasus_cache_info",
      "title": "Summarise the datasusr cache",
      "topics": [
        "datasus_cache_info"
      ]
    },
    {
      "page": "datasus_cache_list",
      "title": "List cached DATASUS files",
      "topics": [
        "datasus_cache_list"
      ]
    },
    {
      "page": "datasus_cache_prune",
      "title": "Prune the datasusr cache",
      "topics": [
        "datasus_cache_prune"
      ]
    },
    {
      "page": "datasus_docs_url",
      "title": "Get FTP URLs for DATASUS documentation",
      "topics": [
        "datasus_docs_url"
      ]
    },
    {
      "page": "datasus_download",
      "title": "Download DATASUS files",
      "topics": [
        "datasus_download"
      ]
    },
    {
      "page": "datasus_fetch",
      "title": "Fetch DATASUS data in one step",
      "topics": [
        "datasus_fetch"
      ]
    },
    {
      "page": "datasus_file_types",
      "title": "List DATASUS file types",
      "topics": [
        "datasus_file_types"
      ]
    },
    {
      "page": "datasus_ftp_ls",
      "title": "List files and directories from the DATASUS FTP",
      "topics": [
        "datasus_ftp_ls"
      ]
    },
    {
      "page": "datasus_get_territory",
      "title": "Download DATASUS territorial tables",
      "topics": [
        "datasus_get_territory"
      ]
    },
    {
      "page": "datasus_list_files",
      "title": "List available DATASUS files",
      "topics": [
        "datasus_list_files"
      ]
    },
    {
      "page": "datasus_modalities",
      "title": "List DATASUS modalities",
      "topics": [
        "datasus_modalities"
      ]
    },
    {
      "page": "datasus_sources",
      "title": "List DATASUS data sources",
      "topics": [
        "datasus_sources"
      ]
    },
    {
      "page": "datasus_ufs",
      "title": "List UF codes used by DATASUS downloads",
      "topics": [
        "datasus_ufs"
      ]
    },
    {
      "page": "format_bytes",
      "title": "Format byte sizes for display",
      "topics": [
        "format_bytes"
      ]
    },
    {
      "page": "read_datasus_dbc",
      "title": "Read DATASUS DBC files",
      "topics": [
        "read_datasus_dbc"
      ]
    }
  ],
  "_pkglogo": "https://github.com/strategicprojects/datasusr/raw/HEAD/man/figures/logo.svg",
  "_readme": "https://github.com/strategicprojects/datasusr/raw/HEAD/README.md",
  "_rundeps": [
    "cli",
    "cpp11",
    "curl",
    "dplyr",
    "generics",
    "glue",
    "lifecycle",
    "magrittr",
    "pillar",
    "pkgconfig",
    "purrr",
    "R6",
    "rlang",
    "stringi",
    "stringr",
    "tibble",
    "tidyr",
    "tidyselect",
    "utf8",
    "vctrs",
    "withr"
  ],
  "_vignettes": [
    {
      "source": "data-sources.Rmd",
      "filename": "data-sources.html",
      "title": "Available data sources",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Source catalog overview",
        "Hospital information (SIH)",
        "Outpatient information (SIA)",
        "Mortality (SIM)",
        "Live births (SINASC)",
        "Health facilities (CNES)",
        "Hospital and outpatient reporting (CIHA / CIH)",
        "Notifiable diseases (SINAN)",
        "Other disease surveillance",
        "Oncology panel",
        "Schistosomiasis control (PCE)",
        "Discontinued and replaced systems",
        "Territorial reference tables",
        "Documentation and data dictionaries",
        "Connectivity check",
        "Cleaning up"
      ],
      "created": "2026-04-01 03:19:27",
      "modified": "2026-04-01 04:15:18",
      "commits": 2
    },
    {
      "source": "cache-and-downloads.Rmd",
      "filename": "cache-and-downloads.html",
      "title": "Cache and downloads",
      "engine": "knitr::rmarkdown",
      "headings": [
        "How caching works",
        "Configuring the cache directory",
        "Inspecting the cache",
        "Forcing a re-download",
        "Pruning and clearing the cache"
      ],
      "created": "2026-04-01 03:19:27",
      "modified": "2026-04-29 19:07:35",
      "commits": 2
    },
    {
      "source": "comparison.Rmd",
      "filename": "comparison.html",
      "title": "Comparison with healthbR and microdatasus",
      "engine": "knitr::rmarkdown",
      "headings": [
        "TL;DR — when to use what",
        "Feature comparison",
        "Reading DBC files",
        "API ergonomics",
        "Caching and parallelism",
        "Variable labelling",
        "Composing the packages",
        "Summary"
      ],
      "created": "2026-04-01 03:19:27",
      "modified": "2026-04-29 19:07:35",
      "commits": 3
    },
    {
      "source": "getting-started.Rmd",
      "filename": "getting-started.html",
      "title": "Getting started with datasusr",
      "engine": "knitr::rmarkdown",
      "headings": [
        "The fastest way: datasus_fetch()",
        "Reading a local DBC file",
        "Selecting columns",
        "Controlling column types",
        "Exploring available data",
        "Step-by-step workflow",
        "Territorial data (municipalities, regions)",
        "Finding documentation and data dictionaries",
        "Next steps"
      ],
      "created": "2026-04-01 03:19:27",
      "modified": "2026-04-01 03:19:27",
      "commits": 1
    },
    {
      "source": "performance-notes.Rmd",
      "filename": "performance-notes.html",
      "title": "Performance notes",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Column selection",
        "Type inference",
        "Explicit types",
        "Date parsing",
        "Benchmarking example",
        "Memory"
      ],
      "created": "2026-04-01 03:19:27",
      "modified": "2026-04-01 03:19:27",
      "commits": 1
    }
  ],
  "_score": 4.698970004336019,
  "_indexed": true,
  "_nocasepkg": "datasusr",
  "_universes": [
    "strategicprojects"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.1.0",
      "date": "2026-06-04T07:49:16.000Z",
      "distro": "noble",
      "arch": "aarch64",
      "commit": "233fa68a37348d79be0d216fafd2d58f4f3929ce",
      "fileid": "d3cd01541c59099732fe956e85ee1a73acce4525e29be49521abe78bed91d6dc",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/strategicprojects/actions/runs/26938109791"
    },
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.1.0",
      "date": "2026-06-04T07:48:46.000Z",
      "distro": "noble",
      "arch": "x86_64",
      "commit": "233fa68a37348d79be0d216fafd2d58f4f3929ce",
      "fileid": "42ebe10a93a60c4f1f0a8971b070bb19c13833b5f5d71527a7b6d540bb000827",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/strategicprojects/actions/runs/26938109791"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.1.0",
      "date": "2026-06-04T07:48:42.000Z",
      "distro": "noble",
      "arch": "aarch64",
      "commit": "233fa68a37348d79be0d216fafd2d58f4f3929ce",
      "fileid": "d8439b58b1233a53f217021e8cc8ac0bb219fbee5405a2e78cc7ec25cf5a13fe",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/strategicprojects/actions/runs/26938109791"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.1.0",
      "date": "2026-06-04T07:48:42.000Z",
      "distro": "noble",
      "arch": "x86_64",
      "commit": "233fa68a37348d79be0d216fafd2d58f4f3929ce",
      "fileid": "84ccb0ffa9db0234212100fb29f8265b2ed543b2cbd1ca718277c63c1acc8f36",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/strategicprojects/actions/runs/26938109791"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.1.0",
      "date": "2026-06-04T07:48:00.000Z",
      "arch": "aarch64",
      "commit": "233fa68a37348d79be0d216fafd2d58f4f3929ce",
      "fileid": "4c024ae9a5df0752b04a2ebc0f1128a5214511af29a020068ce0f6af31e2b09c",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/strategicprojects/actions/runs/26938109791"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.1.0",
      "date": "2026-06-04T07:50:35.000Z",
      "arch": "x86_64",
      "commit": "233fa68a37348d79be0d216fafd2d58f4f3929ce",
      "fileid": "5181968fc5f220cfe3a406b5de3533b6ef45cba039deab0c656533e41a0b7c5f",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/strategicprojects/actions/runs/26938109791"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "0.1.0",
      "date": "2026-06-04T07:48:06.000Z",
      "arch": "aarch64",
      "commit": "233fa68a37348d79be0d216fafd2d58f4f3929ce",
      "fileid": "75801cf89d9fc7ba2520c7146818416b21bc3ad8057d922179dafb38a9a7cb17",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/strategicprojects/actions/runs/26938109791"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "0.1.0",
      "date": "2026-06-04T07:50:36.000Z",
      "arch": "x86_64",
      "commit": "233fa68a37348d79be0d216fafd2d58f4f3929ce",
      "fileid": "c3a4683c543b53b3bfe4a67f0b9a736eda4ab3641d0cf86d710a2a496bc0243d",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/strategicprojects/actions/runs/26938109791"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.1.0",
      "date": "2026-06-04T07:48:45.000Z",
      "arch": "emscripten",
      "commit": "233fa68a37348d79be0d216fafd2d58f4f3929ce",
      "fileid": "db2c08a1f2221705b1cf12f204d1f774d8d11d95f017ead3bcdad77919debc2d",
      "status": "success",
      "buildurl": "https://github.com/r-universe/strategicprojects/actions/runs/26938109791"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.1.0",
      "date": "2026-06-04T07:47:48.000Z",
      "arch": "x86_64",
      "commit": "233fa68a37348d79be0d216fafd2d58f4f3929ce",
      "fileid": "bd48091280eb10deac7b113d436c59d2f35d6ab0d968ec846a7334fb2797d214",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/strategicprojects/actions/runs/26938109791"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.1.0",
      "date": "2026-06-04T07:47:44.000Z",
      "arch": "x86_64",
      "commit": "233fa68a37348d79be0d216fafd2d58f4f3929ce",
      "fileid": "84d72860c645fdb395a89d514bdbb93bc3f732f304c1f367efe2da82f512554b",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/strategicprojects/actions/runs/26938109791"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "0.1.0",
      "date": "2026-06-04T07:47:57.000Z",
      "arch": "x86_64",
      "commit": "233fa68a37348d79be0d216fafd2d58f4f3929ce",
      "fileid": "ec853045fa390cc5483734af0b6da97e2489785f5f8a3bae88050aff6ce39869",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/strategicprojects/actions/runs/26938109791"
    }
  ]
}