Deploying to gh-pages from @ agdamsbo/REDCapCAST@5979b972e1 🚀

This commit is contained in:
agdamsbo 2024-02-05 20:46:08 +00:00
parent a4b0dbf255
commit 9bdac4614c
6 changed files with 130 additions and 131 deletions

View File

@ -98,23 +98,23 @@ demonstration of the functions.</p>
</h2>
<div class="sourceCode" id="cb2"><pre class="downlit sourceCode r">
<code class="sourceCode R"><span><span class="va">redcapcast_data</span> <span class="op">|&gt;</span> <span class="fu">gt</span><span class="fu">::</span><span class="fu"><a href="https://gt.rstudio.com/reference/gt.html" class="external-link">gt</a></span><span class="op">(</span><span class="op">)</span></span></code></pre></div>
<div id="amfzseuwlj" style="padding-left:0px;padding-right:0px;padding-top:10px;padding-bottom:10px;overflow-x:auto;overflow-y:auto;width:auto;height:auto;">
<style>#amfzseuwlj table {
<div id="sixickflnc" style="padding-left:0px;padding-right:0px;padding-top:10px;padding-bottom:10px;overflow-x:auto;overflow-y:auto;width:auto;height:auto;">
<style>#sixickflnc table {
font-family: system-ui, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
#amfzseuwlj thead, #amfzseuwlj tbody, #amfzseuwlj tfoot, #amfzseuwlj tr, #amfzseuwlj td, #amfzseuwlj th {
#sixickflnc thead, #sixickflnc tbody, #sixickflnc tfoot, #sixickflnc tr, #sixickflnc td, #sixickflnc th {
border-style: none;
}
#amfzseuwlj p {
#sixickflnc p {
margin: 0;
padding: 0;
}
#amfzseuwlj .gt_table {
#sixickflnc .gt_table {
display: table;
border-collapse: collapse;
line-height: normal;
@ -140,12 +140,12 @@ demonstration of the functions.</p>
border-left-color: #D3D3D3;
}
#amfzseuwlj .gt_caption {
#sixickflnc .gt_caption {
padding-top: 4px;
padding-bottom: 4px;
}
#amfzseuwlj .gt_title {
#sixickflnc .gt_title {
color: #333333;
font-size: 125%;
font-weight: initial;
@ -157,7 +157,7 @@ demonstration of the functions.</p>
border-bottom-width: 0;
}
#amfzseuwlj .gt_subtitle {
#sixickflnc .gt_subtitle {
color: #333333;
font-size: 85%;
font-weight: initial;
@ -169,7 +169,7 @@ demonstration of the functions.</p>
border-top-width: 0;
}
#amfzseuwlj .gt_heading {
#sixickflnc .gt_heading {
background-color: #FFFFFF;
text-align: center;
border-bottom-color: #FFFFFF;
@ -181,13 +181,13 @@ demonstration of the functions.</p>
border-right-color: #D3D3D3;
}
#amfzseuwlj .gt_bottom_border {
#sixickflnc .gt_bottom_border {
border-bottom-style: solid;
border-bottom-width: 2px;
border-bottom-color: #D3D3D3;
}
#amfzseuwlj .gt_col_headings {
#sixickflnc .gt_col_headings {
border-top-style: solid;
border-top-width: 2px;
border-top-color: #D3D3D3;
@ -202,7 +202,7 @@ demonstration of the functions.</p>
border-right-color: #D3D3D3;
}
#amfzseuwlj .gt_col_heading {
#sixickflnc .gt_col_heading {
color: #333333;
background-color: #FFFFFF;
font-size: 100%;
@ -222,7 +222,7 @@ demonstration of the functions.</p>
overflow-x: hidden;
}
#amfzseuwlj .gt_column_spanner_outer {
#sixickflnc .gt_column_spanner_outer {
color: #333333;
background-color: #FFFFFF;
font-size: 100%;
@ -234,15 +234,15 @@ demonstration of the functions.</p>
padding-right: 4px;
}
#amfzseuwlj .gt_column_spanner_outer:first-child {
#sixickflnc .gt_column_spanner_outer:first-child {
padding-left: 0;
}
#amfzseuwlj .gt_column_spanner_outer:last-child {
#sixickflnc .gt_column_spanner_outer:last-child {
padding-right: 0;
}
#amfzseuwlj .gt_column_spanner {
#sixickflnc .gt_column_spanner {
border-bottom-style: solid;
border-bottom-width: 2px;
border-bottom-color: #D3D3D3;
@ -254,11 +254,11 @@ demonstration of the functions.</p>
width: 100%;
}
#amfzseuwlj .gt_spanner_row {
#sixickflnc .gt_spanner_row {
border-bottom-style: hidden;
}
#amfzseuwlj .gt_group_heading {
#sixickflnc .gt_group_heading {
padding-top: 8px;
padding-bottom: 8px;
padding-left: 5px;
@ -284,7 +284,7 @@ demonstration of the functions.</p>
text-align: left;
}
#amfzseuwlj .gt_empty_group_heading {
#sixickflnc .gt_empty_group_heading {
padding: 0.5px;
color: #333333;
background-color: #FFFFFF;
@ -299,15 +299,15 @@ demonstration of the functions.</p>
vertical-align: middle;
}
#amfzseuwlj .gt_from_md > :first-child {
#sixickflnc .gt_from_md > :first-child {
margin-top: 0;
}
#amfzseuwlj .gt_from_md > :last-child {
#sixickflnc .gt_from_md > :last-child {
margin-bottom: 0;
}
#amfzseuwlj .gt_row {
#sixickflnc .gt_row {
padding-top: 8px;
padding-bottom: 8px;
padding-left: 5px;
@ -326,7 +326,7 @@ demonstration of the functions.</p>
overflow-x: hidden;
}
#amfzseuwlj .gt_stub {
#sixickflnc .gt_stub {
color: #333333;
background-color: #FFFFFF;
font-size: 100%;
@ -339,7 +339,7 @@ demonstration of the functions.</p>
padding-right: 5px;
}
#amfzseuwlj .gt_stub_row_group {
#sixickflnc .gt_stub_row_group {
color: #333333;
background-color: #FFFFFF;
font-size: 100%;
@ -353,15 +353,15 @@ demonstration of the functions.</p>
vertical-align: top;
}
#amfzseuwlj .gt_row_group_first td {
#sixickflnc .gt_row_group_first td {
border-top-width: 2px;
}
#amfzseuwlj .gt_row_group_first th {
#sixickflnc .gt_row_group_first th {
border-top-width: 2px;
}
#amfzseuwlj .gt_summary_row {
#sixickflnc .gt_summary_row {
color: #333333;
background-color: #FFFFFF;
text-transform: inherit;
@ -371,16 +371,16 @@ demonstration of the functions.</p>
padding-right: 5px;
}
#amfzseuwlj .gt_first_summary_row {
#sixickflnc .gt_first_summary_row {
border-top-style: solid;
border-top-color: #D3D3D3;
}
#amfzseuwlj .gt_first_summary_row.thick {
#sixickflnc .gt_first_summary_row.thick {
border-top-width: 2px;
}
#amfzseuwlj .gt_last_summary_row {
#sixickflnc .gt_last_summary_row {
padding-top: 8px;
padding-bottom: 8px;
padding-left: 5px;
@ -390,7 +390,7 @@ demonstration of the functions.</p>
border-bottom-color: #D3D3D3;
}
#amfzseuwlj .gt_grand_summary_row {
#sixickflnc .gt_grand_summary_row {
color: #333333;
background-color: #FFFFFF;
text-transform: inherit;
@ -400,7 +400,7 @@ demonstration of the functions.</p>
padding-right: 5px;
}
#amfzseuwlj .gt_first_grand_summary_row {
#sixickflnc .gt_first_grand_summary_row {
padding-top: 8px;
padding-bottom: 8px;
padding-left: 5px;
@ -410,7 +410,7 @@ demonstration of the functions.</p>
border-top-color: #D3D3D3;
}
#amfzseuwlj .gt_last_grand_summary_row_top {
#sixickflnc .gt_last_grand_summary_row_top {
padding-top: 8px;
padding-bottom: 8px;
padding-left: 5px;
@ -420,11 +420,11 @@ demonstration of the functions.</p>
border-bottom-color: #D3D3D3;
}
#amfzseuwlj .gt_striped {
#sixickflnc .gt_striped {
background-color: rgba(128, 128, 128, 0.05);
}
#amfzseuwlj .gt_table_body {
#sixickflnc .gt_table_body {
border-top-style: solid;
border-top-width: 2px;
border-top-color: #D3D3D3;
@ -433,7 +433,7 @@ demonstration of the functions.</p>
border-bottom-color: #D3D3D3;
}
#amfzseuwlj .gt_footnotes {
#sixickflnc .gt_footnotes {
color: #333333;
background-color: #FFFFFF;
border-bottom-style: none;
@ -447,7 +447,7 @@ demonstration of the functions.</p>
border-right-color: #D3D3D3;
}
#amfzseuwlj .gt_footnote {
#sixickflnc .gt_footnote {
margin: 0px;
font-size: 90%;
padding-top: 4px;
@ -456,7 +456,7 @@ demonstration of the functions.</p>
padding-right: 5px;
}
#amfzseuwlj .gt_sourcenotes {
#sixickflnc .gt_sourcenotes {
color: #333333;
background-color: #FFFFFF;
border-bottom-style: none;
@ -470,7 +470,7 @@ demonstration of the functions.</p>
border-right-color: #D3D3D3;
}
#amfzseuwlj .gt_sourcenote {
#sixickflnc .gt_sourcenote {
font-size: 90%;
padding-top: 4px;
padding-bottom: 4px;
@ -478,63 +478,63 @@ demonstration of the functions.</p>
padding-right: 5px;
}
#amfzseuwlj .gt_left {
#sixickflnc .gt_left {
text-align: left;
}
#amfzseuwlj .gt_center {
#sixickflnc .gt_center {
text-align: center;
}
#amfzseuwlj .gt_right {
#sixickflnc .gt_right {
text-align: right;
font-variant-numeric: tabular-nums;
}
#amfzseuwlj .gt_font_normal {
#sixickflnc .gt_font_normal {
font-weight: normal;
}
#amfzseuwlj .gt_font_bold {
#sixickflnc .gt_font_bold {
font-weight: bold;
}
#amfzseuwlj .gt_font_italic {
#sixickflnc .gt_font_italic {
font-style: italic;
}
#amfzseuwlj .gt_super {
#sixickflnc .gt_super {
font-size: 65%;
}
#amfzseuwlj .gt_footnote_marks {
#sixickflnc .gt_footnote_marks {
font-size: 75%;
vertical-align: 0.4em;
position: initial;
}
#amfzseuwlj .gt_asterisk {
#sixickflnc .gt_asterisk {
font-size: 100%;
vertical-align: 0;
}
#amfzseuwlj .gt_indent_1 {
#sixickflnc .gt_indent_1 {
text-indent: 5px;
}
#amfzseuwlj .gt_indent_2 {
#sixickflnc .gt_indent_2 {
text-indent: 10px;
}
#amfzseuwlj .gt_indent_3 {
#sixickflnc .gt_indent_3 {
text-indent: 15px;
}
#amfzseuwlj .gt_indent_4 {
#sixickflnc .gt_indent_4 {
text-indent: 20px;
}
#amfzseuwlj .gt_indent_5 {
#sixickflnc .gt_indent_5 {
text-indent: 25px;
}
</style>
@ -1020,23 +1020,23 @@ demonstration of the functions.</p>
</div>
<div class="sourceCode" id="cb3"><pre class="downlit sourceCode r">
<code class="sourceCode R"><span><span class="va">redcapcast_meta</span> <span class="op">|&gt;</span> <span class="fu">gt</span><span class="fu">::</span><span class="fu"><a href="https://gt.rstudio.com/reference/gt.html" class="external-link">gt</a></span><span class="op">(</span><span class="op">)</span></span></code></pre></div>
<div id="ajhefpurhk" style="padding-left:0px;padding-right:0px;padding-top:10px;padding-bottom:10px;overflow-x:auto;overflow-y:auto;width:auto;height:auto;">
<style>#ajhefpurhk table {
<div id="lpuybuuknr" style="padding-left:0px;padding-right:0px;padding-top:10px;padding-bottom:10px;overflow-x:auto;overflow-y:auto;width:auto;height:auto;">
<style>#lpuybuuknr table {
font-family: system-ui, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
#ajhefpurhk thead, #ajhefpurhk tbody, #ajhefpurhk tfoot, #ajhefpurhk tr, #ajhefpurhk td, #ajhefpurhk th {
#lpuybuuknr thead, #lpuybuuknr tbody, #lpuybuuknr tfoot, #lpuybuuknr tr, #lpuybuuknr td, #lpuybuuknr th {
border-style: none;
}
#ajhefpurhk p {
#lpuybuuknr p {
margin: 0;
padding: 0;
}
#ajhefpurhk .gt_table {
#lpuybuuknr .gt_table {
display: table;
border-collapse: collapse;
line-height: normal;
@ -1062,12 +1062,12 @@ demonstration of the functions.</p>
border-left-color: #D3D3D3;
}
#ajhefpurhk .gt_caption {
#lpuybuuknr .gt_caption {
padding-top: 4px;
padding-bottom: 4px;
}
#ajhefpurhk .gt_title {
#lpuybuuknr .gt_title {
color: #333333;
font-size: 125%;
font-weight: initial;
@ -1079,7 +1079,7 @@ demonstration of the functions.</p>
border-bottom-width: 0;
}
#ajhefpurhk .gt_subtitle {
#lpuybuuknr .gt_subtitle {
color: #333333;
font-size: 85%;
font-weight: initial;
@ -1091,7 +1091,7 @@ demonstration of the functions.</p>
border-top-width: 0;
}
#ajhefpurhk .gt_heading {
#lpuybuuknr .gt_heading {
background-color: #FFFFFF;
text-align: center;
border-bottom-color: #FFFFFF;
@ -1103,13 +1103,13 @@ demonstration of the functions.</p>
border-right-color: #D3D3D3;
}
#ajhefpurhk .gt_bottom_border {
#lpuybuuknr .gt_bottom_border {
border-bottom-style: solid;
border-bottom-width: 2px;
border-bottom-color: #D3D3D3;
}
#ajhefpurhk .gt_col_headings {
#lpuybuuknr .gt_col_headings {
border-top-style: solid;
border-top-width: 2px;
border-top-color: #D3D3D3;
@ -1124,7 +1124,7 @@ demonstration of the functions.</p>
border-right-color: #D3D3D3;
}
#ajhefpurhk .gt_col_heading {
#lpuybuuknr .gt_col_heading {
color: #333333;
background-color: #FFFFFF;
font-size: 100%;
@ -1144,7 +1144,7 @@ demonstration of the functions.</p>
overflow-x: hidden;
}
#ajhefpurhk .gt_column_spanner_outer {
#lpuybuuknr .gt_column_spanner_outer {
color: #333333;
background-color: #FFFFFF;
font-size: 100%;
@ -1156,15 +1156,15 @@ demonstration of the functions.</p>
padding-right: 4px;
}
#ajhefpurhk .gt_column_spanner_outer:first-child {
#lpuybuuknr .gt_column_spanner_outer:first-child {
padding-left: 0;
}
#ajhefpurhk .gt_column_spanner_outer:last-child {
#lpuybuuknr .gt_column_spanner_outer:last-child {
padding-right: 0;
}
#ajhefpurhk .gt_column_spanner {
#lpuybuuknr .gt_column_spanner {
border-bottom-style: solid;
border-bottom-width: 2px;
border-bottom-color: #D3D3D3;
@ -1176,11 +1176,11 @@ demonstration of the functions.</p>
width: 100%;
}
#ajhefpurhk .gt_spanner_row {
#lpuybuuknr .gt_spanner_row {
border-bottom-style: hidden;
}
#ajhefpurhk .gt_group_heading {
#lpuybuuknr .gt_group_heading {
padding-top: 8px;
padding-bottom: 8px;
padding-left: 5px;
@ -1206,7 +1206,7 @@ demonstration of the functions.</p>
text-align: left;
}
#ajhefpurhk .gt_empty_group_heading {
#lpuybuuknr .gt_empty_group_heading {
padding: 0.5px;
color: #333333;
background-color: #FFFFFF;
@ -1221,15 +1221,15 @@ demonstration of the functions.</p>
vertical-align: middle;
}
#ajhefpurhk .gt_from_md > :first-child {
#lpuybuuknr .gt_from_md > :first-child {
margin-top: 0;
}
#ajhefpurhk .gt_from_md > :last-child {
#lpuybuuknr .gt_from_md > :last-child {
margin-bottom: 0;
}
#ajhefpurhk .gt_row {
#lpuybuuknr .gt_row {
padding-top: 8px;
padding-bottom: 8px;
padding-left: 5px;
@ -1248,7 +1248,7 @@ demonstration of the functions.</p>
overflow-x: hidden;
}
#ajhefpurhk .gt_stub {
#lpuybuuknr .gt_stub {
color: #333333;
background-color: #FFFFFF;
font-size: 100%;
@ -1261,7 +1261,7 @@ demonstration of the functions.</p>
padding-right: 5px;
}
#ajhefpurhk .gt_stub_row_group {
#lpuybuuknr .gt_stub_row_group {
color: #333333;
background-color: #FFFFFF;
font-size: 100%;
@ -1275,15 +1275,15 @@ demonstration of the functions.</p>
vertical-align: top;
}
#ajhefpurhk .gt_row_group_first td {
#lpuybuuknr .gt_row_group_first td {
border-top-width: 2px;
}
#ajhefpurhk .gt_row_group_first th {
#lpuybuuknr .gt_row_group_first th {
border-top-width: 2px;
}
#ajhefpurhk .gt_summary_row {
#lpuybuuknr .gt_summary_row {
color: #333333;
background-color: #FFFFFF;
text-transform: inherit;
@ -1293,16 +1293,16 @@ demonstration of the functions.</p>
padding-right: 5px;
}
#ajhefpurhk .gt_first_summary_row {
#lpuybuuknr .gt_first_summary_row {
border-top-style: solid;
border-top-color: #D3D3D3;
}
#ajhefpurhk .gt_first_summary_row.thick {
#lpuybuuknr .gt_first_summary_row.thick {
border-top-width: 2px;
}
#ajhefpurhk .gt_last_summary_row {
#lpuybuuknr .gt_last_summary_row {
padding-top: 8px;
padding-bottom: 8px;
padding-left: 5px;
@ -1312,7 +1312,7 @@ demonstration of the functions.</p>
border-bottom-color: #D3D3D3;
}
#ajhefpurhk .gt_grand_summary_row {
#lpuybuuknr .gt_grand_summary_row {
color: #333333;
background-color: #FFFFFF;
text-transform: inherit;
@ -1322,7 +1322,7 @@ demonstration of the functions.</p>
padding-right: 5px;
}
#ajhefpurhk .gt_first_grand_summary_row {
#lpuybuuknr .gt_first_grand_summary_row {
padding-top: 8px;
padding-bottom: 8px;
padding-left: 5px;
@ -1332,7 +1332,7 @@ demonstration of the functions.</p>
border-top-color: #D3D3D3;
}
#ajhefpurhk .gt_last_grand_summary_row_top {
#lpuybuuknr .gt_last_grand_summary_row_top {
padding-top: 8px;
padding-bottom: 8px;
padding-left: 5px;
@ -1342,11 +1342,11 @@ demonstration of the functions.</p>
border-bottom-color: #D3D3D3;
}
#ajhefpurhk .gt_striped {
#lpuybuuknr .gt_striped {
background-color: rgba(128, 128, 128, 0.05);
}
#ajhefpurhk .gt_table_body {
#lpuybuuknr .gt_table_body {
border-top-style: solid;
border-top-width: 2px;
border-top-color: #D3D3D3;
@ -1355,7 +1355,7 @@ demonstration of the functions.</p>
border-bottom-color: #D3D3D3;
}
#ajhefpurhk .gt_footnotes {
#lpuybuuknr .gt_footnotes {
color: #333333;
background-color: #FFFFFF;
border-bottom-style: none;
@ -1369,7 +1369,7 @@ demonstration of the functions.</p>
border-right-color: #D3D3D3;
}
#ajhefpurhk .gt_footnote {
#lpuybuuknr .gt_footnote {
margin: 0px;
font-size: 90%;
padding-top: 4px;
@ -1378,7 +1378,7 @@ demonstration of the functions.</p>
padding-right: 5px;
}
#ajhefpurhk .gt_sourcenotes {
#lpuybuuknr .gt_sourcenotes {
color: #333333;
background-color: #FFFFFF;
border-bottom-style: none;
@ -1392,7 +1392,7 @@ demonstration of the functions.</p>
border-right-color: #D3D3D3;
}
#ajhefpurhk .gt_sourcenote {
#lpuybuuknr .gt_sourcenote {
font-size: 90%;
padding-top: 4px;
padding-bottom: 4px;
@ -1400,63 +1400,63 @@ demonstration of the functions.</p>
padding-right: 5px;
}
#ajhefpurhk .gt_left {
#lpuybuuknr .gt_left {
text-align: left;
}
#ajhefpurhk .gt_center {
#lpuybuuknr .gt_center {
text-align: center;
}
#ajhefpurhk .gt_right {
#lpuybuuknr .gt_right {
text-align: right;
font-variant-numeric: tabular-nums;
}
#ajhefpurhk .gt_font_normal {
#lpuybuuknr .gt_font_normal {
font-weight: normal;
}
#ajhefpurhk .gt_font_bold {
#lpuybuuknr .gt_font_bold {
font-weight: bold;
}
#ajhefpurhk .gt_font_italic {
#lpuybuuknr .gt_font_italic {
font-style: italic;
}
#ajhefpurhk .gt_super {
#lpuybuuknr .gt_super {
font-size: 65%;
}
#ajhefpurhk .gt_footnote_marks {
#lpuybuuknr .gt_footnote_marks {
font-size: 75%;
vertical-align: 0.4em;
position: initial;
}
#ajhefpurhk .gt_asterisk {
#lpuybuuknr .gt_asterisk {
font-size: 100%;
vertical-align: 0;
}
#ajhefpurhk .gt_indent_1 {
#lpuybuuknr .gt_indent_1 {
text-indent: 5px;
}
#ajhefpurhk .gt_indent_2 {
#lpuybuuknr .gt_indent_2 {
text-indent: 10px;
}
#ajhefpurhk .gt_indent_3 {
#lpuybuuknr .gt_indent_3 {
text-indent: 15px;
}
#ajhefpurhk .gt_indent_4 {
#lpuybuuknr .gt_indent_4 {
text-indent: 20px;
}
#ajhefpurhk .gt_indent_5 {
#lpuybuuknr .gt_indent_5 {
text-indent: 25px;
}
</style>

View File

@ -56,9 +56,10 @@
<h4 id="functions-24-2-1">Functions<a class="anchor" aria-label="anchor" href="#functions-24-2-1"></a></h4>
<ul><li><p>Fix: <code><a href="../reference/ds2dd.html">ds2dd()</a></code>: uses correct default dd column names. Will be deprecated.</p></li>
<li><p>Fix: <code><a href="../reference/easy_redcap.html">easy_redcap()</a></code>: fixed to actually allow project naming. also specifically asks for uri.</p></li>
<li><p>Fix: <code><a href="../reference/read_redcap_tables.html">read_redcap_tables()</a></code>: now handles non-longitudinal project without repeatable instruments.</p></li>
<li><p>NEW: <code><a href="../reference/ds2dd_detailed.html">ds2dd_detailed()</a></code>: extension of the <code><a href="../reference/ds2dd.html">ds2dd()</a></code>, which serves to preserve as much metadata as possible automatically. Depends on a group of helper functions also introduced. Of special note is the <code><a href="../reference/guess_time_only_filter.html">guess_time_only_filter()</a></code>, which will try to guess which columns/variables should be formatted as time only formats. Supports hms time format. DETAILED INSTRUCTION AND VIGNETTE IS PENDING.</p></li>
<li><p>NEW: <code><a href="../reference/read_redcap_instrument.html">read_redcap_instrument()</a></code> convenience function to retrieve complete instrument. Goes a little against the focused approach. DETAILED INSTRUCTION IS PENDING.</p></li>
<li><p>NEW: <code><a href="../reference/ds2ical.html">ds2ical()</a></code> converts data set to ical format with easy glue string for summary and description. Export ics file with <code><a href="https://rdrr.io/pkg/calendar/man/ic_write.html" class="external-link">calendar::ic_write()</a></code>.</p></li>
<li><p>NEW: <code><a href="../reference/ds2ical.html">ds2ical()</a></code> converts data set to ical format with easy glue string for summary and description. Export .ics file with <code><a href="https://rdrr.io/pkg/calendar/man/ic_write.html" class="external-link">calendar::ic_write()</a></code>.</p></li>
</ul></div>
<div class="section level4">
<h4 id="other-24-2-1">Other<a class="anchor" aria-label="anchor" href="#other-24-2-1"></a></h4>

View File

@ -3,7 +3,7 @@ pkgdown: 2.0.7
pkgdown_sha: ~
articles:
Introduction: Introduction.html
last_built: 2024-02-05T13:58Z
last_built: 2024-02-05T20:45Z
urls:
reference: https://agdamsbo.github.io/REDCapCAST/reference
article: https://agdamsbo.github.io/REDCapCAST/articles

View File

@ -59,11 +59,11 @@
<h2 id="ref-usage">Usage<a class="anchor" aria-label="anchor" href="#ref-usage"></a></h2>
<div class="sourceCode"><pre class="sourceCode r"><code><span><span class="fu">ds2ical</span><span class="op">(</span></span>
<span> <span class="va">data</span>,</span>
<span> <span class="va">start</span>,</span>
<span> <span class="va">location</span>,</span>
<span> start <span class="op">=</span> <span class="va">start</span>,</span>
<span> end <span class="op">=</span> <span class="va">end</span>,</span>
<span> location <span class="op">=</span> <span class="va">location</span>,</span>
<span> summary.glue.string <span class="op">=</span> <span class="st">"ID {id} [{assessor}]"</span>,</span>
<span> description.glue.string <span class="op">=</span> <span class="cn">NULL</span>,</span>
<span> event.length <span class="op">=</span> <span class="fu">lubridate</span><span class="fu">::</span><span class="fu"><a href="https://lubridate.tidyverse.org/reference/period.html" class="external-link">hours</a></span><span class="op">(</span><span class="fl">2</span><span class="op">)</span></span>
<span> description.glue.string <span class="op">=</span> <span class="cn">NULL</span></span>
<span><span class="op">)</span></span></code></pre></div>
</div>
@ -74,11 +74,15 @@
<dt>start</dt>
<dd><p>event start column</p></dd>
<dd><p>dplyr style event start datetime column name</p></dd>
<dt>end</dt>
<dd><p>dplyr style event end datetime column name</p></dd>
<dt>location</dt>
<dd><p>event location column</p></dd>
<dd><p>dplyr style event location column name</p></dd>
<dt>summary.glue.string</dt>
@ -90,11 +94,6 @@ name (summary). Can take any column from data set.</p></dd>
<dd><p>character string to pass to glue::glue() for
event description. Can take any column from data set.</p></dd>
<dt>event.length</dt>
<dd><p>use lubridate functions to generate "Period" class
element (default is lubridate::hours(2))</p></dd>
</dl></div>
<div class="section level2">
<h2 id="value">Value<a class="anchor" aria-label="anchor" href="#value"></a></h2>
@ -106,22 +105,22 @@ element (default is lubridate::hours(2))</p></dd>
<div class="section level2">
<h2 id="ref-examples">Examples<a class="anchor" aria-label="anchor" href="#ref-examples"></a></h2>
<div class="sourceCode"><pre class="sourceCode r"><code><span class="r-in"><span><span class="va">df</span> <span class="op">&lt;-</span> <span class="fu">dplyr</span><span class="fu">::</span><span class="fu"><a href="https://tibble.tidyverse.org/reference/tibble.html" class="external-link">tibble</a></span><span class="op">(</span>start <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/c.html" class="external-link">c</a></span><span class="op">(</span><span class="fu"><a href="https://rdrr.io/r/base/Sys.time.html" class="external-link">Sys.time</a></span><span class="op">(</span><span class="op">)</span>, <span class="fu"><a href="https://rdrr.io/r/base/Sys.time.html" class="external-link">Sys.time</a></span><span class="op">(</span><span class="op">)</span> <span class="op">+</span> <span class="fu">lubridate</span><span class="fu">::</span><span class="fu"><a href="https://lubridate.tidyverse.org/reference/period.html" class="external-link">days</a></span><span class="op">(</span><span class="fl">2</span><span class="op">)</span><span class="op">)</span>,</span></span>
<span class="r-in"><span>id <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/c.html" class="external-link">c</a></span><span class="op">(</span><span class="st">"1"</span>, <span class="fl">3</span><span class="op">)</span>, assessor <span class="op">=</span> <span class="st">"A"</span>, location <span class="op">=</span> <span class="st">"111"</span>, note <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/c.html" class="external-link">c</a></span><span class="op">(</span><span class="cn">NA</span>, <span class="st">"OBS"</span><span class="op">)</span><span class="op">)</span></span></span>
<span class="r-in"><span><span class="va">df</span> <span class="op">|&gt;</span> <span class="fu">ds2ical</span><span class="op">(</span><span class="va">start</span>, <span class="va">location</span><span class="op">)</span></span></span>
<span class="r-in"><span>id <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/c.html" class="external-link">c</a></span><span class="op">(</span><span class="st">"1"</span>, <span class="fl">3</span><span class="op">)</span>, assessor <span class="op">=</span> <span class="st">"A"</span>, location <span class="op">=</span> <span class="st">"111"</span>, note <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/c.html" class="external-link">c</a></span><span class="op">(</span><span class="cn">NA</span>, <span class="st">"OBS"</span><span class="op">)</span><span class="op">)</span> <span class="op">|&gt;</span></span></span>
<span class="r-in"><span><span class="fu">dplyr</span><span class="fu">::</span><span class="fu"><a href="https://dplyr.tidyverse.org/reference/mutate.html" class="external-link">mutate</a></span><span class="op">(</span>end<span class="op">=</span> <span class="va">start</span><span class="op">+</span><span class="fu">lubridate</span><span class="fu">::</span><span class="fu"><a href="https://lubridate.tidyverse.org/reference/period.html" class="external-link">hours</a></span><span class="op">(</span><span class="fl">2</span><span class="op">)</span><span class="op">)</span></span></span>
<span class="r-in"><span><span class="va">df</span> <span class="op">|&gt;</span> <span class="fu">ds2ical</span><span class="op">(</span><span class="op">)</span></span></span>
<span class="r-out co"><span class="r-pr">#&gt;</span> <span style="color: #949494;"># A tibble: 2 × 5</span></span>
<span class="r-out co"><span class="r-pr">#&gt;</span> SUMMARY DTSTART DTEND LOCATION UID </span>
<span class="r-out co"><span class="r-pr">#&gt;</span> <span style="color: #949494; font-style: italic;">&lt;glue&gt;</span> <span style="color: #949494; font-style: italic;">&lt;dttm&gt;</span> <span style="color: #949494; font-style: italic;">&lt;dttm&gt;</span> <span style="color: #949494; font-style: italic;">&lt;chr&gt;</span> <span style="color: #949494; font-style: italic;">&lt;chr&gt;</span> </span>
<span class="r-out co"><span class="r-pr">#&gt;</span> <span style="color: #BCBCBC;">1</span> ID 1 [A] 2024-02-05 <span style="color: #949494;">13:58:10</span> 2024-02-05 <span style="color: #949494;">15:58:10</span> 111 ical-6058ef88-8df2-…</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> <span style="color: #BCBCBC;">2</span> ID 3 [A] 2024-02-07 <span style="color: #949494;">13:58:10</span> 2024-02-07 <span style="color: #949494;">15:58:10</span> 111 ical-8d9bc2f4-09ef-…</span>
<span class="r-in"><span><span class="va">df</span> <span class="op">|&gt;</span> <span class="fu">ds2ical</span><span class="op">(</span><span class="va">start</span>, <span class="va">location</span>,</span></span>
<span class="r-in"><span>summary.glue.string <span class="op">=</span> <span class="st">"ID {id} [{assessor}] {note}"</span><span class="op">)</span></span></span>
<span class="r-out co"><span class="r-pr">#&gt;</span> <span style="color: #BCBCBC;">1</span> ID 1 [A] 2024-02-05 <span style="color: #949494;">20:45:57</span> 2024-02-05 <span style="color: #949494;">22:45:57</span> 111 ical-6058ef88-8df2-…</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> <span style="color: #BCBCBC;">2</span> ID 3 [A] 2024-02-07 <span style="color: #949494;">20:45:57</span> 2024-02-07 <span style="color: #949494;">22:45:57</span> 111 ical-8d9bc2f4-09ef-…</span>
<span class="r-in"><span><span class="va">df</span> <span class="op">|&gt;</span> <span class="fu">ds2ical</span><span class="op">(</span>summary.glue.string <span class="op">=</span> <span class="st">"ID {id} [{assessor}] {note}"</span><span class="op">)</span></span></span>
<span class="r-out co"><span class="r-pr">#&gt;</span> <span style="color: #949494;"># A tibble: 2 × 5</span></span>
<span class="r-out co"><span class="r-pr">#&gt;</span> SUMMARY DTSTART DTEND LOCATION UID </span>
<span class="r-out co"><span class="r-pr">#&gt;</span> <span style="color: #949494; font-style: italic;">&lt;glue&gt;</span> <span style="color: #949494; font-style: italic;">&lt;dttm&gt;</span> <span style="color: #949494; font-style: italic;">&lt;dttm&gt;</span> <span style="color: #949494; font-style: italic;">&lt;chr&gt;</span> <span style="color: #949494; font-style: italic;">&lt;chr&gt;</span> </span>
<span class="r-out co"><span class="r-pr">#&gt;</span> <span style="color: #BCBCBC;">1</span> ID 1 [A] 2024-02-05 <span style="color: #949494;">13:58:10</span> 2024-02-05 <span style="color: #949494;">15:58:10</span> 111 ical-8be1a95c-5…</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> <span style="color: #BCBCBC;">2</span> ID 3 [A] OBS 2024-02-07 <span style="color: #949494;">13:58:10</span> 2024-02-07 <span style="color: #949494;">15:58:10</span> 111 ical-5a05f23b-f…</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> <span style="color: #BCBCBC;">1</span> ID 1 [A] 2024-02-05 <span style="color: #949494;">20:45:57</span> 2024-02-05 <span style="color: #949494;">22:45:57</span> 111 ical-8be1a95c-5…</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> <span style="color: #BCBCBC;">2</span> ID 3 [A] OBS 2024-02-07 <span style="color: #949494;">20:45:57</span> 2024-02-07 <span style="color: #949494;">22:45:57</span> 111 ical-5a05f23b-f…</span>
<span class="r-in"><span><span class="co"># Export .ics file: (not run)</span></span></span>
<span class="r-in"><span><span class="va">ical</span> <span class="op">&lt;-</span> <span class="va">df</span> <span class="op">|&gt;</span> <span class="fu">ds2ical</span><span class="op">(</span><span class="va">start</span>, <span class="va">location</span>, description.glue.string <span class="op">=</span> <span class="st">"{note}"</span><span class="op">)</span></span></span>
<span class="r-in"><span><span class="va">ical</span> <span class="op">&lt;-</span> <span class="va">df</span> <span class="op">|&gt;</span> <span class="fu">ds2ical</span><span class="op">(</span><span class="va">start</span>, <span class="va">end</span>, <span class="va">location</span>, description.glue.string <span class="op">=</span> <span class="st">"{note}"</span><span class="op">)</span></span></span>
<span class="r-in"><span><span class="co"># ical |&gt; calendar::ic_write(file=here::here("calendar.ics"))</span></span></span>
</code></pre></div>
</div>

View File

@ -78,8 +78,7 @@ instruments.</p>
<span> forms <span class="op">=</span> <span class="cn">NULL</span>,</span>
<span> raw_or_label <span class="op">=</span> <span class="st">"label"</span>,</span>
<span> split_forms <span class="op">=</span> <span class="st">"all"</span>,</span>
<span> generics <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/c.html" class="external-link">c</a></span><span class="op">(</span><span class="st">"record_id"</span>, <span class="st">"redcap_event_name"</span>, <span class="st">"redcap_repeat_instrument"</span>,</span>
<span> <span class="st">"redcap_repeat_instance"</span><span class="op">)</span></span>
<span> generics <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/c.html" class="external-link">c</a></span><span class="op">(</span><span class="st">"redcap_event_name"</span>, <span class="st">"redcap_repeat_instrument"</span>, <span class="st">"redcap_repeat_instance"</span><span class="op">)</span></span>
<span><span class="op">)</span></span></code></pre></div>
</div>

File diff suppressed because one or more lines are too long