Skip to content

Commit

Permalink
Add pipeline output to data/ and add script to call tar_make() and us…
Browse files Browse the repository at this point in the history
…e_data()
  • Loading branch information
egouldo committed Oct 27, 2023
1 parent 9d60449 commit 5424771
Show file tree
Hide file tree
Showing 8 changed files with 674 additions and 650 deletions.
1,295 changes: 645 additions & 650 deletions _targets/meta/meta

Large diffs are not rendered by default.

29 changes: 29 additions & 0 deletions data-raw/tar_make.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# ---- Load Libraries ----
library(tidyverse)
library(targets)
library(usethis)

# ---- Run targets pipeline ----
# tar_destroy() # Uncomment and run if want to reproduce from scratch, run locally only
tar_make()

# ---- Read targets and use data ----

# Targets required for main manuscript:
tar_load(ManyEcoEvo)
tar_load(ManyEcoEvo_yi)
tar_load(ManyEcoEvo_results)
tar_load(ManyEcoEvo_yi_results)
tar_load(ManyEcoEvo_viz)
tar_load(ManyEcoEvo_yi_viz)

usethis::use_data(ManyEcoEvo,
ManyEcoEvo_yi,
ManyEcoEvo_results,
ManyEcoEvo_yi_results,
ManyEcoEvo_viz,
ManyEcoEvo_yi_viz,
overwrite = TRUE)

# TODO also need to add raw files to demonstrate pipeline / package functionality in package vignette and software manuscript.

Binary file added data/ManyEcoEvo.rda
Binary file not shown.
Binary file added data/ManyEcoEvo_results.rda
Binary file not shown.
Binary file added data/ManyEcoEvo_viz.rda
Binary file not shown.
Binary file added data/ManyEcoEvo_yi.rda
Binary file not shown.
Binary file added data/ManyEcoEvo_yi_results.rda
Binary file not shown.
Binary file added data/ManyEcoEvo_yi_viz.rda
Binary file not shown.

0 comments on commit 5424771

Please sign in to comment.