From a4b0dbf255d65fcd0018fb16112fa30c147cf5da Mon Sep 17 00:00:00 2001 From: agdamsbo <43278243+agdamsbo@users.noreply.github.com> Date: Mon, 5 Feb 2024 13:58:19 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20gh-pages=20from=20@=20agdamsbo?= =?UTF-8?q?/REDCapCAST@c47f5a9d0781522303461953bcf44d009d5d05dc=20?= =?UTF-8?q?=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 404.html | 2 +- LICENSE.html | 2 +- articles/Introduction.html | 214 +++++++++++------------ articles/index.html | 2 +- authors.html | 6 +- index.html | 4 +- news/index.html | 12 +- pkgdown.yml | 2 +- reference/REDCap_split.html | 2 +- reference/clean_redcap_name.html | 2 +- reference/d2w.html | 2 +- reference/ds2dd.html | 2 +- reference/ds2dd_detailed.html | 2 +- reference/ds2ical.html | 147 ++++++++++++++++ reference/easy_redcap.html | 8 +- reference/focused_metadata.html | 2 +- reference/get_api_key.html | 2 +- reference/guess_time_only_filter.html | 2 +- reference/hms2character.html | 2 +- reference/index.html | 7 +- reference/mark_complete.html | 2 +- reference/match_fields_to_form.html | 2 +- reference/read_redcap_instrument.html | 6 +- reference/read_redcap_tables.html | 4 +- reference/redcap_wider.html | 2 +- reference/redcapcast_data.html | 2 +- reference/redcapcast_meta.html | 2 +- reference/sanitize_split.html | 2 +- reference/split_non_repeating_forms.html | 2 +- reference/strsplitx.html | 2 +- reference/time_only_correction.html | 2 +- search.json | 2 +- sitemap.xml | 3 + 33 files changed, 309 insertions(+), 148 deletions(-) create mode 100644 reference/ds2ical.html diff --git a/404.html b/404.html index 175b57c..0e5d6ab 100644 --- a/404.html +++ b/404.html @@ -31,7 +31,7 @@ REDCapCAST - 24.1.2 + 24.2.1 + + + + + +
+
+
+ +
+

Convert data set to ical file

+
+ +
+

Usage

+
ds2ical(
+  data,
+  start,
+  location,
+  summary.glue.string = "ID {id} [{assessor}]",
+  description.glue.string = NULL,
+  event.length = lubridate::hours(2)
+)
+
+ +
+

Arguments

+
data
+

data set

+ + +
start
+

event start column

+ + +
location
+

event location column

+ + +
summary.glue.string
+

character string to pass to glue::glue() for event +name (summary). Can take any column from data set.

+ + +
description.glue.string
+

character string to pass to glue::glue() for +event description. Can take any column from data set.

+ + +
event.length
+

use lubridate functions to generate "Period" class +element (default is lubridate::hours(2))

+ +
+
+

Value

+ + +

tibble of class "ical"

+
+ +
+

Examples

+
df <- dplyr::tibble(start = c(Sys.time(), Sys.time() + lubridate::days(2)),
+id = c("1", 3), assessor = "A", location = "111", note = c(NA, "OBS"))
+df |> ds2ical(start, location)
+#> # A tibble: 2 × 5
+#>   SUMMARY  DTSTART             DTEND               LOCATION UID                 
+#>   <glue>   <dttm>              <dttm>              <chr>    <chr>               
+#> 1 ID 1 [A] 2024-02-05 13:58:10 2024-02-05 15:58:10 111      ical-6058ef88-8df2-…
+#> 2 ID 3 [A] 2024-02-07 13:58:10 2024-02-07 15:58:10 111      ical-8d9bc2f4-09ef-…
+df |> ds2ical(start, location,
+summary.glue.string = "ID {id} [{assessor}] {note}")
+#> # A tibble: 2 × 5
+#>   SUMMARY      DTSTART             DTEND               LOCATION UID             
+#>   <glue>       <dttm>              <dttm>              <chr>    <chr>           
+#> 1 ID 1 [A]     2024-02-05 13:58:10 2024-02-05 15:58:10 111      ical-8be1a95c-5…
+#> 2 ID 3 [A] OBS 2024-02-07 13:58:10 2024-02-07 15:58:10 111      ical-5a05f23b-f…
+# Export .ics file: (not run)
+ical <- df |> ds2ical(start, location, description.glue.string = "{note}")
+# ical |> calendar::ic_write(file=here::here("calendar.ics"))
+
+
+
+ + +
+ + + + + + + diff --git a/reference/easy_redcap.html b/reference/easy_redcap.html index 05d0b33..2a9f623 100644 --- a/reference/easy_redcap.html +++ b/reference/easy_redcap.html @@ -10,7 +10,7 @@ REDCapCAST - 24.1.2 + 24.2.1