generated from byu-transpolab/template_quarto
-
Notifications
You must be signed in to change notification settings - Fork 1
/
_targets.R
35 lines (29 loc) · 1.33 KB
/
_targets.R
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# Created by use_targets().
# Follow the comments below to fill in this target script.
# Then follow the manual to check and run the pipeline:
# https://books.ropensci.org/targets/walkthrough.html#inspect-the-pipeline # nolint
# Load packages required to define the pipeline:
library(targets)
# library(tarchetypes) # Load other packages as needed. # nolint
# Set target options:
tar_option_set(
packages = c("tidyverse", "mlogit", "modelsummary",
"lubridate"), # packages that your targets need to run
format = "rds" # default storage format
# Set other options as needed.
)
# tar_make_clustermq() configuration (okay to leave alone):
# options(clustermq.scheduler = "multicore")
# tar_make_future() configuration (okay to leave alone):
# Install packages {{future}}, {{future.callr}}, and {{future.batchtools}} to allow use_targets() to configure tar_make_future() options.
# Load the R scripts stored in R/ with your custom functions:
for (file in list.files("R", full.names = TRUE)){
if (file != "R/chapter_start.R") source(file)
}
# source("other_functions.R") # Source other scripts as needed. # nolint
# Replace the target list below with your own:
list(
tar_target(ETTDataFile, "data/TIM Phase III Data for ETT analysis_T7T5.csv",
format = "file"),
tar_target(LnETTVariables, get_data(ETTDataFile))
)