Skip to content

Commit

Permalink
Added FrEDI package to workflow
Browse files Browse the repository at this point in the history
Added FrEDI install to YML and added require(FrEDI) to createSystemData_main.R
  • Loading branch information
knoiva-indecon committed Sep 21, 2023
1 parent bd3bc40 commit 3cee86f
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 8 deletions.
29 changes: 21 additions & 8 deletions .github/workflows/compile_main_fredi_data.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,15 @@
### Note, this should be the same directory as the input paper.md
name: Compile main FrEDI Data

on: [push]
# on:
# push:
# inputs:
# on: [push]
on:
push:
inputs:
repo_url:
description: FrEDI repo URL
required: true
default:

# update:
# type: choice
# description: Update sysdata.rda
Expand All @@ -38,14 +43,22 @@ jobs:
cache-version: 1
packages: |
any::tidyverse
any::remotes
any::openxlsx
- name: Install FrEDI
run: |
Rscript -e 'remotes::install_github( \
repo="https://github.com/USEPA/FrEDI", \
subdir = "FrEDI", \
ref = "main", \
type = "source", \
repos = getOption("repos"), \
force = TRUE \
)'
- name: Run createsystemData
run: |
Rscript -e 'require(tidyverse)'
Rscript -e 'getwd() |> print()'
Rscript -e '"." |> list.files()'
Rscript -e '"./scripts" |> list.files()'
Rscript -e 'source("./scripts/createSystemData_main.R")'
- name: Upload Tests
Expand Down
1 change: 1 addition & 0 deletions scripts/createSystemData_main.R
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
###### Load Packages ######
require(tidyverse)
require(openxlsx)
require(FrEDI)
# require(devtools)

###### Set Arguments ######
Expand Down

0 comments on commit 3cee86f

Please sign in to comment.