Compare commits

..

No commits in common. "1f659c5bd9d810e27f3618b66bc16d85bf35c6c2" and "ae1c120cd8add44c3c55609b0fec8a3c848a8bf5" have entirely different histories.

5 changed files with 9 additions and 333 deletions

View File

@ -1,5 +1,5 @@
Package: REDCapCAST Package: REDCapCAST
Title: REDCap Metadata Casting and Castellated Data Handling Title: REDCap Castellated Data Handling and Metadata Casting
Version: 24.11.2 Version: 24.11.2
Authors@R: c( Authors@R: c(
person("Andreas Gammelgaard", "Damsbo", email = "agdamsbo@clin.au.dk", person("Andreas Gammelgaard", "Damsbo", email = "agdamsbo@clin.au.dk",

View File

@ -1,12 +1,12 @@
# REDCapCAST 24.11.2 # REDCapCAST 24.11.2
24.11.1 was rejected on CRAN based on wrong title capitalisation. This was an opportunity to extend the package overhaul. And this actually turned out to be a major step towards a very usable shiny app which have received most of the focus. 24.11.1 was rejected on CRAN based on wrong title capitalisation. This was an opportunity to extend the package overhaul.
I have implemented option to specify categorical variables to factorize, but doing this with a modified version of {forcats} and {haven}'s `as_factor()`, that will preserve any attributes applied to the data to be able to upload and cast REDCap meta data from richly formatted data (use .rds). No matter the input type, all input is parsed using the default options from the {readr} package. Also to avoid mis-labelling, logicals are converted to factors as REDCap truefalse class follows different naming conversion compared to R. Also correct support for variable labels as field labels (use .rds formatted data and label with labelled::var_label()) Documentation has been updated. Data parser functions have been added (based on readr) and separated from the ds2dd_detailed(). Now also includes conversion of logicals to factor as REDCap truefalse class follows different naming conversion compared to R. Also correct support for variable labels as field labels (use .rds formatted data and label with labelled::var_label())
Vignettes and documentation have been restructured. Vignettes and documentation have been restructured.
This package has been detached from the REDCapRITS, which it was originally forked from. The data split function will be kept, while testing will be rewritten. This projects has evolved away from the original fork. This package has been detached from the REDCapRITS, which it was originally forked from. The data split function will be kept, while testing will be rewritten. This projects has evolved away from the original fork, so I think this detachment is fair.
# REDCapCAST 24.11.1 # REDCapCAST 24.11.1

View File

@ -56,12 +56,10 @@ io
jbi jbi
keyring keyring
labelled labelled
labelling
mRS mRS
matadata matadata
md md
mdy mdy
mis
mrs mrs
mtcars mtcars
na na

View File

@ -5,6 +5,6 @@ account: agdamsbo
server: shinyapps.io server: shinyapps.io
hostUrl: https://api.shinyapps.io/v1 hostUrl: https://api.shinyapps.io/v1
appId: 11351429 appId: 11351429
bundleId: 9402312 bundleId: 9396834
url: https://agdamsbo.shinyapps.io/redcapcast/ url: https://agdamsbo.shinyapps.io/redcapcast/
version: 1 version: 1

330
renv.lock
View File

@ -19,16 +19,6 @@
], ],
"Hash": "470851b6d5d0ac559e9d01bb352b4021" "Hash": "470851b6d5d0ac559e9d01bb352b4021"
}, },
"RColorBrewer": {
"Package": "RColorBrewer",
"Version": "1.1-3",
"Source": "Repository",
"Repository": "CRAN",
"Requirements": [
"R"
],
"Hash": "45f0398006e83a5b10b72a90663d8d8c"
},
"REDCapR": { "REDCapR": {
"Package": "REDCapR", "Package": "REDCapR",
"Version": "1.3.0", "Version": "1.3.0",
@ -60,19 +50,6 @@
], ],
"Hash": "6b868847b365672d6c1677b1608da9ed" "Hash": "6b868847b365672d6c1677b1608da9ed"
}, },
"V8": {
"Package": "V8",
"Version": "6.0.0",
"Source": "Repository",
"Repository": "CRAN",
"Requirements": [
"Rcpp",
"curl",
"jsonlite",
"utils"
],
"Hash": "6603bfcbc7883a5fed41fb13042a3899"
},
"askpass": { "askpass": {
"Package": "askpass", "Package": "askpass",
"Version": "1.2.1", "Version": "1.2.1",
@ -113,16 +90,6 @@
], ],
"Hash": "543776ae6848fde2f48ff3816d0628bc" "Hash": "543776ae6848fde2f48ff3816d0628bc"
}, },
"bigD": {
"Package": "bigD",
"Version": "0.3.0",
"Source": "Repository",
"Repository": "CRAN",
"Requirements": [
"R"
],
"Hash": "78dfe2b21e523358871eea1601b04b56"
},
"bit": { "bit": {
"Package": "bit", "Package": "bit",
"Version": "4.5.0", "Version": "4.5.0",
@ -147,13 +114,6 @@
], ],
"Hash": "e84984bf5f12a18628d9a02322128dfd" "Hash": "e84984bf5f12a18628d9a02322128dfd"
}, },
"bitops": {
"Package": "bitops",
"Version": "1.0-9",
"Source": "Repository",
"Repository": "CRAN",
"Hash": "d972ef991d58c19e6efa71b21f5e144b"
},
"bslib": { "bslib": {
"Package": "bslib", "Package": "bslib",
"Version": "0.8.0", "Version": "0.8.0",
@ -232,20 +192,6 @@
], ],
"Hash": "3f038e5ac7f41d4ac41ce658c85e3042" "Hash": "3f038e5ac7f41d4ac41ce658c85e3042"
}, },
"colorspace": {
"Package": "colorspace",
"Version": "2.1-1",
"Source": "Repository",
"Repository": "CRAN",
"Requirements": [
"R",
"grDevices",
"graphics",
"methods",
"stats"
],
"Hash": "d954cb1c57e8d8b756165d7ba18aa55a"
},
"commonmark": { "commonmark": {
"Package": "commonmark", "Package": "commonmark",
"Version": "1.9.2", "Version": "1.9.2",
@ -319,16 +265,6 @@
], ],
"Hash": "fedd9d00c2944ff00a0e2696ccf048ec" "Hash": "fedd9d00c2944ff00a0e2696ccf048ec"
}, },
"evaluate": {
"Package": "evaluate",
"Version": "1.0.1",
"Source": "Repository",
"Repository": "CRAN",
"Requirements": [
"R"
],
"Hash": "3fd29944b231036ad67c3edb32e02201"
},
"fansi": { "fansi": {
"Package": "fansi", "Package": "fansi",
"Version": "1.0.6", "Version": "1.0.6",
@ -341,13 +277,6 @@
], ],
"Hash": "962174cf2aeb5b9eea581522286a911f" "Hash": "962174cf2aeb5b9eea581522286a911f"
}, },
"farver": {
"Package": "farver",
"Version": "2.1.2",
"Source": "Repository",
"Repository": "CRAN",
"Hash": "680887028577f3fa2a81e410ed0d6e42"
},
"fastmap": { "fastmap": {
"Package": "fastmap", "Package": "fastmap",
"Version": "1.2.0", "Version": "1.2.0",
@ -367,7 +296,7 @@
}, },
"fontawesome": { "fontawesome": {
"Package": "fontawesome", "Package": "fontawesome",
"Version": "0.5.3", "Version": "0.5.2",
"Source": "Repository", "Source": "Repository",
"Repository": "CRAN", "Repository": "CRAN",
"Requirements": [ "Requirements": [
@ -375,7 +304,7 @@
"htmltools", "htmltools",
"rlang" "rlang"
], ],
"Hash": "bd1297f9b5b1fc1372d19e2c4cd82215" "Hash": "c2efdd5f0bcd1ea861c2d4e2a883a67d"
}, },
"forcats": { "forcats": {
"Package": "forcats", "Package": "forcats",
@ -426,36 +355,6 @@
], ],
"Hash": "5899f1eaa825580172bb56c08266f37c" "Hash": "5899f1eaa825580172bb56c08266f37c"
}, },
"gt": {
"Package": "gt",
"Version": "0.11.1",
"Source": "Repository",
"Repository": "CRAN",
"Requirements": [
"R",
"base64enc",
"bigD",
"bitops",
"cli",
"commonmark",
"dplyr",
"fs",
"glue",
"htmltools",
"htmlwidgets",
"juicyjuice",
"magrittr",
"markdown",
"reactable",
"rlang",
"sass",
"scales",
"tidyselect",
"vctrs",
"xml2"
],
"Hash": "3170d1f0f45e531c241179ab57cd30bd"
},
"haven": { "haven": {
"Package": "haven", "Package": "haven",
"Version": "2.5.4", "Version": "2.5.4",
@ -477,27 +376,6 @@
], ],
"Hash": "9171f898db9d9c4c1b2c745adc2c1ef1" "Hash": "9171f898db9d9c4c1b2c745adc2c1ef1"
}, },
"here": {
"Package": "here",
"Version": "1.0.1",
"Source": "Repository",
"Repository": "CRAN",
"Requirements": [
"rprojroot"
],
"Hash": "24b224366f9c2e7534d2344d10d59211"
},
"highr": {
"Package": "highr",
"Version": "0.11",
"Source": "Repository",
"Repository": "CRAN",
"Requirements": [
"R",
"xfun"
],
"Hash": "d65ba49117ca223614f71b60d85b8ab7"
},
"hms": { "hms": {
"Package": "hms", "Package": "hms",
"Version": "1.1.3", "Version": "1.1.3",
@ -528,21 +406,6 @@
], ],
"Hash": "81d371a9cc60640e74e4ab6ac46dcedc" "Hash": "81d371a9cc60640e74e4ab6ac46dcedc"
}, },
"htmlwidgets": {
"Package": "htmlwidgets",
"Version": "1.6.4",
"Source": "Repository",
"Repository": "CRAN",
"Requirements": [
"grDevices",
"htmltools",
"jsonlite",
"knitr",
"rmarkdown",
"yaml"
],
"Hash": "04291cc45198225444a397606810ac37"
},
"httpuv": { "httpuv": {
"Package": "httpuv", "Package": "httpuv",
"Version": "1.6.15", "Version": "1.6.15",
@ -593,16 +456,6 @@
], ],
"Hash": "4e993b65c2c3ffbffce7bb3e2c6f832b" "Hash": "4e993b65c2c3ffbffce7bb3e2c6f832b"
}, },
"juicyjuice": {
"Package": "juicyjuice",
"Version": "0.1.0",
"Source": "Repository",
"Repository": "CRAN",
"Requirements": [
"V8"
],
"Hash": "3bcd11943da509341838da9399e18bce"
},
"keyring": { "keyring": {
"Package": "keyring", "Package": "keyring",
"Version": "1.3.2", "Version": "1.3.2",
@ -623,33 +476,6 @@
], ],
"Hash": "5cd8cfb2e90c57110b7dd1785c599aba" "Hash": "5cd8cfb2e90c57110b7dd1785c599aba"
}, },
"knitr": {
"Package": "knitr",
"Version": "1.49",
"Source": "Repository",
"Repository": "CRAN",
"Requirements": [
"R",
"evaluate",
"highr",
"methods",
"tools",
"xfun",
"yaml"
],
"Hash": "9fcb189926d93c636dea94fbe4f44480"
},
"labeling": {
"Package": "labeling",
"Version": "0.4.3",
"Source": "Repository",
"Repository": "CRAN",
"Requirements": [
"graphics",
"stats"
],
"Hash": "b64ec208ac5bc1852b285f665d6368b3"
},
"later": { "later": {
"Package": "later", "Package": "later",
"Version": "1.3.2", "Version": "1.3.2",
@ -684,19 +510,6 @@
], ],
"Hash": "7ce2733a9826b3aeb1775d56fd305472" "Hash": "7ce2733a9826b3aeb1775d56fd305472"
}, },
"markdown": {
"Package": "markdown",
"Version": "1.13",
"Source": "Repository",
"Repository": "CRAN",
"Requirements": [
"R",
"commonmark",
"utils",
"xfun"
],
"Hash": "074efab766a9d6360865ad39512f2a7e"
},
"memoise": { "memoise": {
"Package": "memoise", "Package": "memoise",
"Version": "2.0.1", "Version": "2.0.1",
@ -730,17 +543,6 @@
], ],
"Hash": "ab9d0930bfa21e98aec9d07f0c43cc89" "Hash": "ab9d0930bfa21e98aec9d07f0c43cc89"
}, },
"munsell": {
"Package": "munsell",
"Version": "0.5.1",
"Source": "Repository",
"Repository": "CRAN",
"Requirements": [
"colorspace",
"methods"
],
"Hash": "4fd8900853b746af55b81fda99da7695"
},
"openssl": { "openssl": {
"Package": "openssl", "Package": "openssl",
"Version": "2.2.2", "Version": "2.2.2",
@ -753,7 +555,7 @@
}, },
"openxlsx2": { "openxlsx2": {
"Package": "openxlsx2", "Package": "openxlsx2",
"Version": "1.11", "Version": "1.10",
"Source": "Repository", "Source": "Repository",
"Repository": "CRAN", "Repository": "CRAN",
"Requirements": [ "Requirements": [
@ -766,7 +568,7 @@
"utils", "utils",
"zip" "zip"
], ],
"Hash": "c519244e5080a630292e1fdc36717f0d" "Hash": "ee4b99fc9ca05bbfd29d567785c093d2"
}, },
"pillar": { "pillar": {
"Package": "pillar", "Package": "pillar",
@ -860,31 +662,6 @@
], ],
"Hash": "5e3c5dc0b071b21fa128676560dbe94d" "Hash": "5e3c5dc0b071b21fa128676560dbe94d"
}, },
"reactR": {
"Package": "reactR",
"Version": "0.6.1",
"Source": "Repository",
"Repository": "CRAN",
"Requirements": [
"htmltools"
],
"Hash": "b8e3d93f508045812f47136c7c44c251"
},
"reactable": {
"Package": "reactable",
"Version": "0.4.4",
"Source": "Repository",
"Repository": "CRAN",
"Requirements": [
"R",
"digest",
"htmltools",
"htmlwidgets",
"jsonlite",
"reactR"
],
"Hash": "6069eb2a6597963eae0605c1875ff14c"
},
"readODS": { "readODS": {
"Package": "readODS", "Package": "readODS",
"Version": "2.3.1", "Version": "2.3.1",
@ -954,39 +731,6 @@
], ],
"Hash": "3eec01f8b1dee337674b2e34ab1f9bc1" "Hash": "3eec01f8b1dee337674b2e34ab1f9bc1"
}, },
"rmarkdown": {
"Package": "rmarkdown",
"Version": "2.29",
"Source": "Repository",
"Repository": "CRAN",
"Requirements": [
"R",
"bslib",
"evaluate",
"fontawesome",
"htmltools",
"jquerylib",
"jsonlite",
"knitr",
"methods",
"tinytex",
"tools",
"utils",
"xfun",
"yaml"
],
"Hash": "df99277f63d01c34e95e3d2f06a79736"
},
"rprojroot": {
"Package": "rprojroot",
"Version": "2.0.4",
"Source": "Repository",
"Repository": "CRAN",
"Requirements": [
"R"
],
"Hash": "4c8415e0ec1e29f3f4f6fc108bef0144"
},
"sass": { "sass": {
"Package": "sass", "Package": "sass",
"Version": "0.4.9", "Version": "0.4.9",
@ -1001,26 +745,6 @@
], ],
"Hash": "d53dbfddf695303ea4ad66f86e99b95d" "Hash": "d53dbfddf695303ea4ad66f86e99b95d"
}, },
"scales": {
"Package": "scales",
"Version": "1.3.0",
"Source": "Repository",
"Repository": "CRAN",
"Requirements": [
"R",
"R6",
"RColorBrewer",
"cli",
"farver",
"glue",
"labeling",
"lifecycle",
"munsell",
"rlang",
"viridisLite"
],
"Hash": "c19df082ba346b0ffa6f833e92de34d1"
},
"shiny": { "shiny": {
"Package": "shiny", "Package": "shiny",
"Version": "1.9.1", "Version": "1.9.1",
@ -1166,16 +890,6 @@
], ],
"Hash": "829f27b9c4919c16b593794a6344d6c0" "Hash": "829f27b9c4919c16b593794a6344d6c0"
}, },
"tinytex": {
"Package": "tinytex",
"Version": "0.54",
"Source": "Repository",
"Repository": "CRAN",
"Requirements": [
"xfun"
],
"Hash": "3ec7e3ddcacc2d34a9046941222bf94d"
},
"tzdb": { "tzdb": {
"Package": "tzdb", "Package": "tzdb",
"Version": "0.4.0", "Version": "0.4.0",
@ -1211,16 +925,6 @@
], ],
"Hash": "c03fa420630029418f7e6da3667aac4a" "Hash": "c03fa420630029418f7e6da3667aac4a"
}, },
"viridisLite": {
"Package": "viridisLite",
"Version": "0.4.2",
"Source": "Repository",
"Repository": "CRAN",
"Requirements": [
"R"
],
"Hash": "c826c7c4241b6fc89ff55aaea3fa7491"
},
"vroom": { "vroom": {
"Package": "vroom", "Package": "vroom",
"Version": "1.6.5", "Version": "1.6.5",
@ -1259,32 +963,6 @@
], ],
"Hash": "cc2d62c76458d425210d1eb1478b30b4" "Hash": "cc2d62c76458d425210d1eb1478b30b4"
}, },
"xfun": {
"Package": "xfun",
"Version": "0.49",
"Source": "Repository",
"Repository": "CRAN",
"Requirements": [
"R",
"grDevices",
"stats",
"tools"
],
"Hash": "8687398773806cfff9401a2feca96298"
},
"xml2": {
"Package": "xml2",
"Version": "1.3.6",
"Source": "Repository",
"Repository": "CRAN",
"Requirements": [
"R",
"cli",
"methods",
"rlang"
],
"Hash": "1d0336142f4cd25d8d23cd3ba7a8fb61"
},
"xtable": { "xtable": {
"Package": "xtable", "Package": "xtable",
"Version": "1.8-4", "Version": "1.8-4",