{
  "_id": "6a10174dacfb0bcc41c84e07",
  "Package": "redcaptools",
  "Type": "Package",
  "Title": "Tools for exporting and working with REDCap data",
  "Version": "0.5.2",
  "Authors@R": "c(\nperson(given = \"Alan G.\", family = \"Haynes\", role = \"cre\",\nemail = \"alan.haynes@unibe.ch\"),\nperson(given = \"Dominik\", family = \"Güntensperger\", role = \"aut\",\nemail = \"dominik.guentensperger@unibe.ch\"))",
  "Maintainer": "Alan G Haynes <alan.haynes@unibe.ch>",
  "Description": "Tools for exporting and working with REDCap data (e.g.\nadding labels, formatting dates).",
  "License": "MIT + file LICENSE",
  "Encoding": "UTF-8",
  "LazyData": "true",
  "RoxygenNote": "7.3.2",
  "VignetteBuilder": "knitr",
  "Config/testthat/edition": "3",
  "Config/pak/sysreqs": "make libicu-dev libssl-dev libx11-dev zlib1g-dev",
  "Repository": "https://ctu-bern.r-universe.dev",
  "Date/Publication": "2026-03-23 17:05:59 UTC",
  "RemoteUrl": "https://github.com/CTU-Bern/redcaptools",
  "RemoteRef": "HEAD",
  "RemoteSha": "bc58074ec27d1e5cfc28c8fa1acb2ac65b5dcb7e",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-05-22 08:40:55 UTC",
    "User": "root"
  },
  "Author": "Alan G. Haynes [cre],\nDominik Güntensperger [aut]",
  "MD5sum": "9bc03a4e55cc6a56a3e2215c25def485",
  "_user": "ctu-bern",
  "_type": "src",
  "_file": "redcaptools_0.5.2.tar.gz",
  "_fileid": "ccfe03350dfc534fc59533b4571c95c760da1613b3a6800189e61061bab04f53",
  "_filesize": 254125,
  "_sha256": "ccfe03350dfc534fc59533b4571c95c760da1613b3a6800189e61061bab04f53",
  "_created": "2026-05-22T08:40:55.000Z",
  "_published": "2026-05-22T08:43:57.974Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 77345913712,
      "time": 144,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7156429439"
    },
    {
      "job": 77345913737,
      "time": 144,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7156429438"
    },
    {
      "job": 77345913820,
      "time": 80,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7156409208"
    },
    {
      "job": 77345913714,
      "time": 144,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7156429093"
    },
    {
      "job": 77345531724,
      "time": 153,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7156382936"
    },
    {
      "job": 77345913656,
      "time": 119,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7156421726"
    },
    {
      "job": 77345913824,
      "time": 104,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7156416226"
    },
    {
      "job": 77345913766,
      "time": 90,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7156412669"
    },
    {
      "job": 77345913721,
      "time": 90,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7156412353"
    }
  ],
  "_buildurl": "https://github.com/r-universe/ctu-bern/actions/runs/26277566903",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/CTU-Bern/redcaptools",
  "_commit": {
    "id": "bc58074ec27d1e5cfc28c8fa1acb2ac65b5dcb7e",
    "author": "Alan Haynes <aghaynes@users.noreply.github.com>",
    "committer": "GitHub <noreply@github.com>",
    "message": "Add DCR-R-CMD-CHECK workflow configuration",
    "time": 1774285559
  },
  "_maintainer": {
    "name": "Alan G Haynes",
    "email": "alan.haynes@unibe.ch",
    "login": "aghaynes",
    "twitter": "@aghaynes",
    "description": "",
    "uuid": 6594028
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 4.1.0",
      "role": "Depends"
    },
    {
      "package": "crayon",
      "role": "Imports"
    },
    {
      "package": "dplyr",
      "role": "Imports"
    },
    {
      "package": "httr2",
      "version": ">= 0.2.0",
      "role": "Imports"
    },
    {
      "package": "labelled",
      "role": "Imports"
    },
    {
      "package": "lubridate",
      "role": "Imports"
    },
    {
      "package": "magrittr",
      "role": "Imports"
    },
    {
      "package": "stringr",
      "role": "Imports"
    },
    {
      "package": "tidyr",
      "role": "Imports"
    },
    {
      "package": "knitr",
      "role": "Imports"
    },
    {
      "package": "tidyselect",
      "role": "Imports"
    },
    {
      "package": "stringdist",
      "role": "Imports"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "version": ">= 3.0.0",
      "role": "Suggests"
    }
  ],
  "_owner": "ctu-bern",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2025-49",
      "n": 2
    },
    {
      "week": "2026-02",
      "n": 2
    },
    {
      "week": "2026-11",
      "n": 2
    },
    {
      "week": "2026-13",
      "n": 1
    }
  ],
  "_tags": [],
  "_topics": [
    "api-export",
    "database"
  ],
  "_stars": 4,
  "_contributors": [
    {
      "user": "aghaynes",
      "count": 107,
      "uuid": 6594028
    },
    {
      "user": "dominikguentensperger",
      "count": 55,
      "uuid": 79481595
    }
  ],
  "_userbio": {
    "uuid": 45794307,
    "type": "organization",
    "name": "CTU Bern",
    "description": "CTU Bern is the Clinical Trials Unit of the Faculty of Medicine and the Department of Clinical Research of the University of Bern"
  },
  "_downloads": {
    "count": 0,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/redcaptools"
  },
  "_devurl": "https://github.com/ctu-bern/redcaptools",
  "_searchresults": 13,
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "extra/redcaptools.html",
    "manual.pdf"
  ],
  "_cranurl": false,
  "_exports": [
    "convert_to_logical",
    "label_others",
    "multichoice_factor",
    "multichoice_opts",
    "rc_dates",
    "rc_datetimes",
    "rc_prep",
    "redcap_export_batch",
    "redcap_export_byform",
    "redcap_export_meta",
    "redcap_export_tbl",
    "redcap_import_dates",
    "redcap_import_datetime",
    "redcap_import_recode",
    "redcap_import_select",
    "redcap_import_times",
    "redcap_prep",
    "redcap_prep_dates",
    "redcap_prep_datetimes",
    "redcap_toform",
    "remove_empty_rows",
    "singlechoice_factor",
    "singlechoice_opts",
    "split_by_form"
  ],
  "_datasets": [
    {
      "name": "importdemo_data",
      "title": "Example import data",
      "object": "importdemo_data",
      "class": [
        "data.frame"
      ],
      "fields": [
        "record_id",
        "text",
        "date_dmy",
        "datevar_ymd",
        "datetime_dmy_hm",
        "datetimevar_ymd_hm",
        "datetime_dmy_hms",
        "datetimevar_ymd_hms",
        "email",
        "intvar",
        "letter",
        "numvar",
        "num_1dp",
        "numvar_2dp",
        "num_3dp",
        "numvar_4dp",
        "phone",
        "pseudovar",
        "time_hms",
        "timevar_hm",
        "time_ms",
        "timevar_hms2",
        "notes",
        "calc",
        "singlec_dd",
        "singlecvar_rb",
        "multic_2",
        "yn",
        "tf",
        "slidervar"
      ],
      "rows": 17,
      "table": true,
      "tojson": true
    },
    {
      "name": "importdemo_dict",
      "title": "Example data dictionary",
      "object": "importdemo_dict",
      "class": [
        "data.frame"
      ],
      "fields": [
        "field_name",
        "form_name",
        "section_header",
        "field_type",
        "field_label",
        "select_choices_or_calculations",
        "field_note",
        "text_validation_type_or_show_slider_number",
        "text_validation_min",
        "text_validation_max",
        "identifier",
        "branching_logic",
        "required_field",
        "custom_alignment",
        "question_number",
        "matrix_group_name",
        "matrix_ranking",
        "field_annotation"
      ],
      "rows": 38,
      "table": true,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "convert_to_logical",
      "title": "Convert variables to logical",
      "topics": [
        "convert_to_logical"
      ]
    },
    {
      "page": "deprecated",
      "title": "Deprecated functions These functions have been renamed to be more consistent with the rest of the package. They may be removed in a future version.",
      "topics": [
        "deprecated",
        "rc_dates",
        "rc_datetimes",
        "rc_prep",
        "split_by_form"
      ]
    },
    {
      "page": "importdemo_data",
      "title": "Example import data",
      "topics": [
        "importdemo_data"
      ]
    },
    {
      "page": "importdemo_dict",
      "title": "Example data dictionary",
      "topics": [
        "importdemo_dict"
      ]
    },
    {
      "page": "label_others",
      "title": "Label non-single/multiple choice/date(time) fields 'singlechoice_factor', 'multichoice_factor', 'rc_date' and 'rc_datetime'",
      "topics": [
        "label_others"
      ]
    },
    {
      "page": "multichoice_factor",
      "title": "create factors for multiple choice variables",
      "topics": [
        "multichoice_factor"
      ]
    },
    {
      "page": "redcap_export_batch",
      "title": "Export data in batches",
      "topics": [
        "redcap_export_batch"
      ]
    },
    {
      "page": "redcap_export_byform",
      "title": "Export REDCap data by form",
      "topics": [
        "redcap_export_byform"
      ]
    },
    {
      "page": "redcap_export_meta",
      "title": "Export the most important REDCap metadata tables",
      "topics": [
        "redcap_export_meta"
      ]
    },
    {
      "page": "redcap_export_tbl",
      "title": "Export tables from REDCap",
      "topics": [
        "redcap_export_tbl"
      ]
    },
    {
      "page": "redcap_import_dates",
      "title": "REDCap Date Conversion",
      "topics": [
        "redcap_import_dates"
      ]
    },
    {
      "page": "redcap_import_datetime",
      "title": "REDCap Date-Time Conversion",
      "topics": [
        "redcap_import_datetime"
      ]
    },
    {
      "page": "redcap_import_recode",
      "title": "REDCap Recode",
      "topics": [
        "redcap_import_recode"
      ]
    },
    {
      "page": "redcap_import_select",
      "title": "REDCap Select and Rename",
      "topics": [
        "redcap_import_select"
      ]
    },
    {
      "page": "redcap_import_times",
      "title": "REDCap Time Conversion",
      "topics": [
        "redcap_import_times"
      ]
    },
    {
      "page": "redcap_prep",
      "title": "Convert REDCap variable types (dates, datetimes, factors) and apply labels",
      "topics": [
        "redcap_prep"
      ]
    },
    {
      "page": "redcap_prep_dates",
      "title": "Convert dates stored as strings to 'Date' variables",
      "topics": [
        "redcap_prep_dates",
        "redcap_prep_datetimes"
      ]
    },
    {
      "page": "redcap_toform",
      "title": "Convert manually downloaded REDCap data into a list of forms",
      "topics": [
        "redcap_toform"
      ]
    },
    {
      "page": "remove_empty_rows",
      "title": "Analagous to `janitor::remove_empty(..., \"rows\")`, but allows ignoring specific variables",
      "topics": [
        "remove_empty_rows"
      ]
    },
    {
      "page": "singlechoice_factor",
      "title": "create factors for single choice variables",
      "topics": [
        "singlechoice_factor"
      ]
    },
    {
      "page": "choice_options",
      "title": "Get options for single and multi choice questions",
      "topics": [
        "multichoice_opts",
        "singlechoice_opts"
      ]
    }
  ],
  "_pkglogo": "https://github.com/CTU-Bern/redcaptools/raw/HEAD/man/figures/logo.png",
  "_readme": "https://github.com/CTU-Bern/redcaptools/raw/HEAD/README.md",
  "_rundeps": [
    "askpass",
    "bit",
    "bit64",
    "cli",
    "clipr",
    "cpp11",
    "crayon",
    "curl",
    "dplyr",
    "evaluate",
    "forcats",
    "generics",
    "glue",
    "haven",
    "highr",
    "hms",
    "httr2",
    "knitr",
    "labelled",
    "lifecycle",
    "lubridate",
    "magrittr",
    "openssl",
    "pillar",
    "pkgconfig",
    "prettyunits",
    "progress",
    "purrr",
    "R6",
    "rappdirs",
    "readr",
    "rlang",
    "stringdist",
    "stringi",
    "stringr",
    "sys",
    "tibble",
    "tidyr",
    "tidyselect",
    "timechange",
    "tzdb",
    "utf8",
    "vctrs",
    "vroom",
    "withr",
    "xfun",
    "yaml"
  ],
  "_vignettes": [
    {
      "source": "api_endpoints.Rmd",
      "filename": "api_endpoints.html",
      "title": "REDCap API endpoints",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Records",
        "Data dictionary (Metadata)",
        "Instruments",
        "Events",
        "Form-event mapping",
        "Repeating forms and events",
        "Arms",
        "Export List of Export Field Names"
      ],
      "created": "2024-04-05 15:08:12",
      "modified": "2024-04-05 15:08:12",
      "commits": 1
    },
    {
      "source": "redcaptools.Rmd",
      "filename": "redcaptools.html",
      "title": "redcaptools",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Exporting from REDCap",
        "Using manual exports",
        "Processing REDCap data",
        "Create factors",
        "Create Dates and POSIX variables"
      ],
      "created": "2022-04-05 06:53:40",
      "modified": "2024-04-05 15:08:12",
      "commits": 5
    }
  ],
  "_score": 4.318063334962762,
  "_indexed": true,
  "_nocasepkg": "redcaptools",
  "_universes": [
    "ctu-bern",
    "aghaynes"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.5.2",
      "date": "2026-05-22T08:43:10.000Z",
      "distro": "noble",
      "commit": "bc58074ec27d1e5cfc28c8fa1acb2ac65b5dcb7e",
      "fileid": "97a46143fbc545087aa9414d6c56ffb2717a503dc223e949881888476566fe81",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/ctu-bern/actions/runs/26277566903"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.5.2",
      "date": "2026-05-22T08:43:11.000Z",
      "distro": "noble",
      "commit": "bc58074ec27d1e5cfc28c8fa1acb2ac65b5dcb7e",
      "fileid": "07b2c9302d1fc1e4768e7457f65ec87203e774f75531df00062f41c7e1d71128",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/ctu-bern/actions/runs/26277566903"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.5.2",
      "date": "2026-05-22T08:42:18.000Z",
      "commit": "bc58074ec27d1e5cfc28c8fa1acb2ac65b5dcb7e",
      "fileid": "f7e3728b54580c48c9267f194ea5f3fe5efd6071c329689a99970e5c19c8f2ed",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/ctu-bern/actions/runs/26277566903"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "0.5.2",
      "date": "2026-05-22T08:43:06.000Z",
      "commit": "bc58074ec27d1e5cfc28c8fa1acb2ac65b5dcb7e",
      "fileid": "b2c21e89ab8827b5f356c4d595339ca4493d48c628ed2ca3614826da38a878fb",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/ctu-bern/actions/runs/26277566903"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.5.2",
      "date": "2026-05-22T08:43:16.000Z",
      "commit": "bc58074ec27d1e5cfc28c8fa1acb2ac65b5dcb7e",
      "fileid": "be3e22a6dc88309ceffb4c0436d7862f04cbb8eafd7a9b7d8477f634a481e134",
      "status": "success",
      "buildurl": "https://github.com/r-universe/ctu-bern/actions/runs/26277566903"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.5.2",
      "date": "2026-05-22T08:42:22.000Z",
      "commit": "bc58074ec27d1e5cfc28c8fa1acb2ac65b5dcb7e",
      "fileid": "fc1d1ed9d6b06c9f4f6847a5224e16e3058f3a3b29874e7217c9ff7b96d9bf57",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/ctu-bern/actions/runs/26277566903"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.5.2",
      "date": "2026-05-22T08:42:12.000Z",
      "commit": "bc58074ec27d1e5cfc28c8fa1acb2ac65b5dcb7e",
      "fileid": "d5855798de605454bfecc8dd6b46599e62791107e67971f4e745fbee91de4b47",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/ctu-bern/actions/runs/26277566903"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "0.5.2",
      "date": "2026-05-22T08:42:08.000Z",
      "commit": "bc58074ec27d1e5cfc28c8fa1acb2ac65b5dcb7e",
      "fileid": "528f0e0a93bb76455e97bbb6bce8347f994238938060e6ec1448db396d4839dd",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/ctu-bern/actions/runs/26277566903"
    }
  ]
}