From f7f390c1fd38b2c7d623a663355900675d7d01ac Mon Sep 17 00:00:00 2001 From: agdamsbo <43278243+agdamsbo@users.noreply.github.com> Date: Thu, 24 Oct 2024 10:11:29 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20gh-pages=20from=20@=20agdamsbo?= =?UTF-8?q?/REDCapCAST@ff22ba05d89f95ecf193c43c19b7c94435b66783=20?= =?UTF-8?q?=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkgdown.yml | 2 +- reference/export_redcap_instrument.html | 55 ++++++++++++------------- search.json | 2 +- 3 files changed, 29 insertions(+), 30 deletions(-) diff --git a/pkgdown.yml b/pkgdown.yml index 35ccda7..9bd463a 100644 --- a/pkgdown.yml +++ b/pkgdown.yml @@ -5,7 +5,7 @@ articles: Database-creation: Database-creation.html Introduction: Introduction.html Shiny-app: Shiny-app.html -last_built: 2024-10-24T09:59Z +last_built: 2024-10-24T10:11Z urls: reference: https://agdamsbo.github.io/REDCapCAST/reference article: https://agdamsbo.github.io/REDCapCAST/articles diff --git a/reference/export_redcap_instrument.html b/reference/export_redcap_instrument.html index 67b340a..87795b8 100644 --- a/reference/export_redcap_instrument.html +++ b/reference/export_redcap_instrument.html @@ -65,13 +65,18 @@ production.

Could be from `ds2dd_detailed()`

+
file
+

destination file name.

+ + +
force
+

force instrument creation and ignore different form names by +just using the first.

+ +
record.id

record id variable name. Default is 'record_id'.

- -
dir
-

destination dir for the instrument zip. Default is the current WD.

-

Value

@@ -80,31 +85,25 @@ Could be from `ds2dd_detailed()`

Examples

-
iris |>
-  ds2dd_detailed(
-    add.auto.id = TRUE,
-    form.name = sample(c("b", "c"), size = 6, replace = TRUE, prob = rep(.5, 2))
-  ) |>
-  purrr::pluck("meta") |>
-  (\(.x){
-  split(.x, .x$form_name)
-  })() |>
-  purrr::imap(function(.x, .i){
-  export_redcap_instrument(.x,file=here::here(paste0(.i,Sys.Date(),".zip")))
-  })
-#> A default id column has been added
-#> Error in map2(.x, vec_index(.x), .f, ...):  In index: 1.
-#>  With name: b.
-#> Caused by error in `export_redcap_instrument()`:
-#> ! could not find function "export_redcap_instrument"
+    
#iris |>
+#  ds2dd_detailed(
+#    add.auto.id = TRUE,
+#    form.name = sample(c("b", "c"), size = 6, replace = TRUE, prob = rep(.5, 2))
+#  ) |>
+#  purrr::pluck("meta") |>
+#  (\(.x){
+#  split(.x, .x$form_name)
+#  })() |>
+#  purrr::imap(function(.x, .i){
+#  export_redcap_instrument(.x,file=here::here(paste0(.i,Sys.Date(),".zip")))
+#  })
 
-iris |>
-  ds2dd_detailed(
-    add.auto.id = TRUE
-  ) |>
-  purrr::pluck("meta") |>
-  export_redcap_instrument(file=here::here(paste0("instrument",Sys.Date(),".zip")))
-#> Error in export_redcap_instrument(purrr::pluck(ds2dd_detailed(iris, add.auto.id = TRUE),     "meta"), file = here::here(paste0("instrument", Sys.Date(),     ".zip"))): could not find function "export_redcap_instrument"
+#iris |>
+#  ds2dd_detailed(
+#    add.auto.id = TRUE
+#  ) |>
+#  purrr::pluck("meta") |>
+#  export_redcap_instrument(file=here::here(paste0("instrument",Sys.Date(),".zip")))