{
  "_id": "6a328c853efcd9bda438d0c8",
  "Package": "redcaptools",
  "Type": "Package",
  "Title": "Tools for exporting and working with REDCap data",
  "Version": "0.5.3",
  "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",
  "VignetteBuilder": "knitr",
  "Config/testthat/edition": "3",
  "Config/roxygen2/version": "8.0.0",
  "Config/pak/sysreqs": "make libicu-dev libssl-dev libx11-dev zlib1g-dev",
  "Repository": "https://ctu-bern.r-universe.dev",
  "Date/Publication": "2026-06-17 09:54:34 UTC",
  "RemoteUrl": "https://github.com/CTU-Bern/redcaptools",
  "RemoteRef": "HEAD",
  "RemoteSha": "9954a0afa883425d2cbc7c13d897991a91b507c0",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-06-17 11:54:07 UTC",
    "User": "root"
  },
  "Author": "Alan G. Haynes [cre],\nDominik Güntensperger [aut]",
  "MD5sum": "7ddbd7abd99de508d74a14addd70b231",
  "_user": "ctu-bern",
  "_type": "src",
  "_file": "redcaptools_0.5.3.tar.gz",
  "_fileid": "3050d4c6cef626f0b20e24f207fa925d02172d09542db7036d1a13ddc6ea1df6",
  "_filesize": 260187,
  "_sha256": "3050d4c6cef626f0b20e24f207fa925d02172d09542db7036d1a13ddc6ea1df6",
  "_created": "2026-06-17T11:54:07.000Z",
  "_published": "2026-06-17T12:01:09.359Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 81888215338,
      "time": 147,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7694589307"
    },
    {
      "job": 81888215319,
      "time": 138,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7694588583"
    },
    {
      "job": 81888215330,
      "time": 121,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7694670759"
    },
    {
      "job": 81888215412,
      "time": 83,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7694665213"
    },
    {
      "job": 81887519497,
      "time": 225,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7694533392"
    },
    {
      "job": 81888215373,
      "time": 126,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7694581538"
    },
    {
      "job": 81888215370,
      "time": 102,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7694573857"
    },
    {
      "job": 81888215356,
      "time": 85,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7694566177"
    },
    {
      "job": 81888215511,
      "time": 113,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7694573176"
    }
  ],
  "_buildurl": "https://github.com/r-universe/ctu-bern/actions/runs/27686814004",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/CTU-Bern/redcaptools",
  "_commit": {
    "id": "9954a0afa883425d2cbc7c13d897991a91b507c0",
    "author": "Alan Haynes <aghaynes@users.noreply.github.com>",
    "committer": "GitHub <noreply@github.com>",
    "message": "Remove duplicate navbar structure\n\nRemoved navbar structure from pkgdown configuration.",
    "time": 1781690074
  },
  "_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": "knitr",
      "role": "Imports"
    },
    {
      "package": "labelled",
      "role": "Imports"
    },
    {
      "package": "lubridate",
      "role": "Imports"
    },
    {
      "package": "magrittr",
      "role": "Imports"
    },
    {
      "package": "rlang",
      "role": "Imports"
    },
    {
      "package": "stringr",
      "role": "Imports"
    },
    {
      "package": "tidyr",
      "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
    },
    {
      "week": "2026-25",
      "n": 4
    }
  ],
  "_tags": [],
  "_topics": [
    "api-export",
    "database"
  ],
  "_stars": 4,
  "_contributors": [
    {
      "user": "aghaynes",
      "count": 121,
      "uuid": 6594028
    },
    {
      "user": "dominikguentensperger",
      "count": 56,
      "uuid": 79481595
    }
  ],
  "_userbio": {
    "uuid": 45794307,
    "type": "organization",
    "name": "CTU Bern",
    "followers": 14,
    "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",
    "LICENSE",
    "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.414973347970818,
  "_indexed": true,
  "_nocasepkg": "redcaptools",
  "_universes": [
    "ctu-bern",
    "aghaynes"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.5.3",
      "date": "2026-06-17T11:56:20.000Z",
      "distro": "noble",
      "commit": "9954a0afa883425d2cbc7c13d897991a91b507c0",
      "fileid": "36a4085e36615230ea1ba02238da3eee56774b82a9792ce7f115bb24f1b9f8bb",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/ctu-bern/actions/runs/27686814004"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.5.3",
      "date": "2026-06-17T11:56:20.000Z",
      "distro": "noble",
      "commit": "9954a0afa883425d2cbc7c13d897991a91b507c0",
      "fileid": "21b24c337d3db353cf659447d53159b96f5f10ab5e121620673ce97fb72be12c",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/ctu-bern/actions/runs/27686814004"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.5.3",
      "date": "2026-06-17T12:00:14.000Z",
      "commit": "9954a0afa883425d2cbc7c13d897991a91b507c0",
      "fileid": "a35bb12f8b86f7f2520275a415f520b582d1c8cceabc427ca2983eb9dfb5c62d",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/ctu-bern/actions/runs/27686814004"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "0.5.3",
      "date": "2026-06-17T12:00:05.000Z",
      "commit": "9954a0afa883425d2cbc7c13d897991a91b507c0",
      "fileid": "a84a269add9f219b78a655052724ed70795388657154bd0b2f5074b6721804db",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/ctu-bern/actions/runs/27686814004"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.5.3",
      "date": "2026-06-17T11:56:19.000Z",
      "commit": "9954a0afa883425d2cbc7c13d897991a91b507c0",
      "fileid": "7161952cee51328b4c2ce767d3cdd16ec2aeb57a2121b45dfd8863baffe420da",
      "status": "success",
      "buildurl": "https://github.com/r-universe/ctu-bern/actions/runs/27686814004"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.5.3",
      "date": "2026-06-17T11:55:26.000Z",
      "commit": "9954a0afa883425d2cbc7c13d897991a91b507c0",
      "fileid": "9f04da89e0253ec9a917f118dd3d801610c04f9d339ecc89312a2bddc3886504",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/ctu-bern/actions/runs/27686814004"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.5.3",
      "date": "2026-06-17T11:55:12.000Z",
      "commit": "9954a0afa883425d2cbc7c13d897991a91b507c0",
      "fileid": "ea6609421f432b7f8499319d6e82868b464bbb3c208a1ac3b69b8172c1c1c7f3",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/ctu-bern/actions/runs/27686814004"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "0.5.3",
      "date": "2026-06-17T11:55:27.000Z",
      "commit": "9954a0afa883425d2cbc7c13d897991a91b507c0",
      "fileid": "557fbdf418feeadb9a8ae3f4bf1d284cf7ae3ab80f638732b916f8f8c9e2ea52",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/ctu-bern/actions/runs/27686814004"
    }
  ]
}