-
Notifications
You must be signed in to change notification settings - Fork 74
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#' @title Current storage format. | ||
#' @export | ||
#' @family utilities | ||
#' @description Get the storage format of the target currently running. | ||
#' @details This function is meant to be called inside a target in a | ||
#' running pipeline. If it is called outside a target in the running | ||
#' pipeline, it will return the default format given by | ||
#' `tar_option_get("format")`. | ||
#' @return A character string, storage format of the target currently | ||
#' running in the pipeline. If called outside a target in the running | ||
#' pipeline, [tar_format_get()] will return the default format given by | ||
#' `tar_option_get("format")`. | ||
#' @examples | ||
#' tar_target(x, tar_format_get(), format = "qs") | ||
tar_format_get <- function() { | ||
tar_definition()$settings$format | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
tar_test("tar_format_get()", { | ||
skip_cran() | ||
skip_if_not_installed("qs") | ||
expect_equal(tar_format_get(), tar_option_get("format")) | ||
tar_script(tar_target(x, tar_format_get(), format = "qs")) | ||
tar_make(callr_function = NULL) | ||
expect_equal(tar_read(x), "qs") | ||
}) |