pin_get_or_create | R Documentation |
This function attempts to retrieve a specified pin from a board. If the pin doesn't exist or the data is different, it creates a new pin.
pin_get_or_create(.data, .board, .name, type = "csv", ...)
.data |
The data to be pinned if a new pin is to be created. |
.board |
The board where the pin is located or should be created. |
.name |
The name of the pin to be retrieved or created. |
type |
The type of data being pinned, defaults to 'csv'. |
... |
Additional arguments to be passed to |
The version of the pin that was retrieved or created.
## Not run:
board <- pins::board_register_local()
data <- mtcars
pin_version <- pin_get_or_create(data, board, "mtcars_pin")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.