Commit 2ed4d19e authored by Turner's avatar Turner
Browse files

Set up targets pipeline

parent acbfe2ba
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -3,3 +3,4 @@
.RData
.Ruserdata
hydro-cf-trends.Rproj
data

R/EIA_xl_readers.R

0 → 100644
+7 −0
Original line number Diff line number Diff line
## Functions for reading EIA spreadsheets

get_EIA_annual_gen <- function(xl_dir){



}

_targets.R

0 → 100644
+36 −0
Original line number Diff line number Diff line

library(targets)

# Set target options:
tar_option_set(
  packages = c("tibble",
               "dplyr",
               "tidyr",
               "lubridate",
               "readxl",
               "readr",
               "arrow",
               "purrr",
               "furrr",
               "future",
               "sf")
)

#options(clustermq.scheduler = "multisession")
#plan(multisession)

# Run the R scripts in the R/ folder:
tar_source()

# Replace the target list below with your own:
list(
  tar_target(
    EIA_529_906_920_923,
    "./data/EIA/Generation/",
    format = "file"
  ),
  tar_target(
    EIA_annual_gen,
    get_EIA_annual_gen(xl_dir = EIA_529_906_920_923)
  )
)

_targets/.gitignore

0 → 100644
+5 −0
Original line number Diff line number Diff line
*
!.gitignore
!meta
meta/*
!meta/meta

_targets/meta/meta

0 → 100644
+4 −0
Original line number Diff line number Diff line
name|type|data|command|depend|seed|path|time|size|bytes|format|repository|iteration|parent|children|seconds|warnings|error
EIA_529_906_920_923|stem|429fb55d18257b0e|7e8ad8e942ac6d8d|ef46db3751d8e999|-1754950433|./data/EIA/Generation/|t19552.6038571127s|db7d75b1b9e45804|24576|file|local|vector|||0.82||
EIA_annual_gen|stem|d131862dc333587a|058b1fa983426efc|7647f84d89c236d8|-1955140278||t19552.6216109002s|44e327d1ee1978d7|43|rds|local|vector|||0||
get_EIA_annual_gen|function|6f020b783a1d9451|||||||||||||||
Loading