Skip to content

Instantly share code, notes, and snippets.

@maurolepore
Last active March 28, 2022 21:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save maurolepore/cf598f1acdea66f356e5f105b40eed0f to your computer and use it in GitHub Desktop.
Save maurolepore/cf598f1acdea66f356e5f105b40eed0f to your computer and use it in GitHub Desktop.
# source("https://bit.ly/use_pin")
library(pins)
use_pin <- function(x, name, board = board_local(), overwrite = FALSE) {
if (!pin_exists(board, name) || overwrite) pin_write(board, x, name)
pin_read(board, name)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment