-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
852 additions
and
629 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,27 @@ | ||
# To view your current pipeline status, and possibly run/update it, | ||
# you can simply source/execute this script (maybe using the | ||
# `dev/03-run_cycle.R` script) | ||
{ | ||
function(proceed = TRUE, save_all = TRUE) { | ||
if (interactive()) { | ||
if ( | ||
requireNamespace("rstudioapi") && | ||
rstudioapi::isAvailable() && | ||
save_all | ||
) { | ||
rstudioapi::documentSaveAll() | ||
} | ||
|
||
targets::tar_visnetwork() |> | ||
print() | ||
(\() if (interactive()) { | ||
if ( | ||
requireNamespace("rstudioapi") && | ||
rstudioapi::isAvailable() | ||
) { | ||
usethis::ui_done("All scripts saved.") | ||
rstudioapi::documentSaveAll() | ||
} | ||
|
||
proceed <- usethis::ui_yeah(paste0( | ||
"Do you want to make your pipeline? ", | ||
"({usethis::ui_code('tar_make')})" | ||
)) | ||
} | ||
usethis::ui_todo("Check your pipeline.") | ||
targets::tar_visnetwork() |> | ||
print() | ||
|
||
if (proceed) { | ||
withr::with_envvar( | ||
list(RSTUDIO_VERSION = "2021.09.0"), { | ||
# devtools::test(stop_on_failure = TRUE) | ||
targets::tar_make() | ||
} | ||
) | ||
targets::tar_visnetwork(targets_only = TRUE) |> | ||
print() | ||
} | ||
usethis::ui_todo("Make your pipeline.") | ||
if (usethis::ui_yeah("Do you want to make your pipeline?")) { | ||
targets::tar_make() | ||
usethis::ui_todo("Review the updated status.") | ||
targets::tar_visnetwork(targets_only = TRUE, outdated = FALSE) |> | ||
print() | ||
} | ||
}() | ||
})() | ||
|
||
|
||
|
Oops, something went wrong.