Skip to content

Commit

Permalink
Update Rmd to test out action
Browse files Browse the repository at this point in the history
  • Loading branch information
stefpiatek committed Dec 23, 2024
1 parent a8fb75e commit ce8e2b4
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)
}
Expand Down

0 comments on commit ce8e2b4

Please sign in to comment.