From ce8e2b49f71131d25a405c2f888f64abd74845c1 Mon Sep 17 00:00:00 2001 From: Stef Piatek Date: Mon, 23 Dec 2024 16:12:54 +0000 Subject: [PATCH] Update Rmd to test out action --- .../02-omop-walkthrough-critical-care.Rmd | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/dynamic-docs/02-omop-walkthrough-critical-care/02-omop-walkthrough-critical-care.Rmd b/dynamic-docs/02-omop-walkthrough-critical-care/02-omop-walkthrough-critical-care.Rmd index 044b0bb..30c80cc 100644 --- a/dynamic-docs/02-omop-walkthrough-critical-care/02-omop-walkthrough-critical-care.Rmd +++ b/dynamic-docs/02-omop-walkthrough-critical-care/02-omop-walkthrough-critical-care.Rmd @@ -19,6 +19,10 @@ knitr::opts_chunk$set(echo = TRUE, warning = FALSE, message = FALSE) ``` ## Installing & loading required packages + +If any of the `library($PACKAGE)` packages aren't installed, you can install them by running `install.packages("$PACKAGE")`, +replacing `$PACKAGE` with the package name. + ```{r packages} # install omopcept from Github if not installed @@ -55,10 +59,10 @@ if (! file.exists(file.path(destdata,"person.csv"))) { # Make GitHub API request to list contents of given path response <- gh::gh(glue::glue("/repos/{repo}/contents/{path}")) - + # Download all files to the destination dir purrr::walk(response, ~ download.file(.x$download_url, destfile = file.path(destdata, .x$name))) - + list.files(destdata) }