Skip to content

Commit

Permalink
add comments to file
Browse files Browse the repository at this point in the history
  • Loading branch information
wlangera committed Apr 17, 2024
1 parent 12a7fd2 commit 49fc27e
Showing 1 changed file with 15 additions and 10 deletions.
25 changes: 15 additions & 10 deletions source/targets/data_preparation/_targets.R
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# 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
################################################################################
# targets pipeline for reading, cleaning and preparation of the MBAG MAS data #
# see https://books.ropensci.org/targets/ #
################################################################################

# Load packages required to define the pipeline:
# Load packages required to define the pipeline
library(targets)
library(tarchetypes)

Expand All @@ -17,16 +17,21 @@ tar_option_set(
workspace_on_error = TRUE
)

# Run the R scripts in the R/ folder with your custom functions:
tar_source()
# tar_source("other_functions.R") # Source other scripts as needed.
# Set directory locations
target_dir <- rprojroot::find_root_file(
"source", "targets", "data_preparations",
criterion = rprojroot::is_git_root)
mbag_dir <- rprojroot::find_root_file(
criterion = rprojroot::is_git_root)

# Replace the target list below with your own:
# Source custom functions
# source(file.path(mbag_dir, "source", "R", ".R"))

# Target list
list(
tar_target(
name = data,
command = tibble(x = rnorm(100), y = rnorm(100))
# format = "qs" # Efficient storage for general data objects.
),
tar_target(
name = model,
Expand Down

0 comments on commit 49fc27e

Please sign in to comment.