dr_source_pins()
Pass a configured pins board; authentication belongs to pins. A version fixes
the requested revision when the board supports versioning. Without a version,
the board's current pin is read at execution time. Some boards resolve versions
with identical timestamps by their content hash. For these ties, dataraft
uses its publication metadata to recover write order. A tie containing external
writes without this metadata requires an explicit
version; no order is
guessed. Board credentials are excluded from inspection. Pin contents must be
a data frame or tibble.
Usage
dr_source_pins(board, name, version = NULL)Arguments
- board
- Configured pins board.
- name
- Pin name.
- version
- Optional pin version.
Value
A source specification for
dataraft.core::dr_add_source().
Examples
\dontshow{if (requireNamespace("pins", quietly = TRUE)) withAutoprint(\{ # examplesIf}
board <- pins::board_temp(versioned = TRUE)
pins::pin_write(board, data.frame(id = 1:2), "orders", type = "rds")
dataraft.core::dr_read_source(dr_source_pins(board, "orders"))
\dontshow{\}) # examplesIf}Documentation source snapshot · View source at 2f9432d ↗
Code examples are documented source examples; they are not executed in this website build.
Code examples are documented source examples; they are not executed in this website build.