Skip to content

Commit

Permalink
Merge pull request #195 from pharmaverse/618_templates_action
Browse files Browse the repository at this point in the history
618 templates action
  • Loading branch information
dgrassellyb authored Sep 18, 2023
2 parents a1dba9d + 43ceca2 commit 921d7bf
Show file tree
Hide file tree
Showing 4 changed files with 44 additions and 9 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/templates.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
name: Check Templates

on:
workflow_dispatch:
pull_request:
branches:
- main
- devel

jobs:
templates:
name: Check Templates
uses: pharmaverse/admiralci/.github/workflows/check-templates.yml@main
secrets: inherit
with:
r-version: "4.1"
push-templates-data: true
11 changes: 8 additions & 3 deletions inst/templates/ad_adbcva.R
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,12 @@ adbcva_crtflag <- adbcva_adsl %>%

admiralophtha_adbcva <- adbcva_crtflag

# ---- Save output ----
# Save output ----

dir <- tempdir() # Change to whichever directory you want to save the dataset in
save(admiralophtha_adbcva, file = file.path(dir, "admiralophtha_adbcva.rda"), compress = "bzip2")
dir <- file.path(getwd(), "tmp")
print(dir)
if (!file.exists(dir)) {
# Create the folder
dir.create(dir)
}
save(admiralophtha_adbcva, file = file.path(dir, "adbcva.rda"), compress = "bzip2")
13 changes: 9 additions & 4 deletions inst/templates/ad_adoe.R
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,12 @@ adoe_adsl <- adoe_aseq %>%

admiralophtha_adoe <- adoe_adsl

# ---- Save output ----

dir <- tempdir() # Change to whichever directory you want to save the dataset in
save(admiralophtha_adoe, file = file.path(dir, "admiralophtha_adoe.rda"), compress = "bzip2")
# Save output ----

dir <- file.path(getwd(), "tmp")
print(dir)
if (!file.exists(dir)) {
# Create the folder
dir.create(dir)
}
save(admiralophtha_adoe, file = file.path(dir, "adoe.rda"), compress = "bzip2")
11 changes: 9 additions & 2 deletions inst/templates/ad_advfq.R
Original file line number Diff line number Diff line change
Expand Up @@ -306,5 +306,12 @@ admiralophtha_advfq <- advfq_adsl

# ---- Save output ----

dir <- tempdir() # Change to whichever directory you want to save the dataset in
save(admiralophtha_advfq, file = file.path(dir, "admiralophtha_advfq.rda"), compress = "bzip2")
# Save output ----

dir <- file.path(getwd(), "tmp")
print(dir)
if (!file.exists(dir)) {
# Create the folder
dir.create(dir)
}
save(admiralophtha_advfq, file = file.path(dir, "advfq.rda"), compress = "bzip2")

0 comments on commit 921d7bf

Please sign in to comment.