pins
for using, sharing,
finding R resourcespins
!The pins
package from RStudio lets you “publish data,
models, and other R objects, making it easy to share them across
projects and with your colleagues. You can pin objects to a variety of
pin boards, including folders (to share on a networked drive or with
services like DropBox), RStudio Connect, Amazon S3, Azure storage and
Microsoft 365 (OneDrive and SharePoint). Pins can be automatically
versioned, making it straightforward to track changes, re-run analyses
on historical data, and undo mistakes”
I’m just going to show a very basic example of creating a pin board locally, adding some stuff to it, then accessing them from the board.
pins
:
install.packages("pins")
library(pins)
For example, you can store a board as my_board
.
my_board <- pins::board_local()
Make the dataset:
cool_data <- tribble(
~teddy, ~khora,
1, 2,
3, 4,
5, 7
)
Add it to the board:
my_board %>% pin_versions("cool_data")
Use the version ID.
pins
resourcespins
website from
RStudiopins
package vignettepins
with Jesse Mostipak and Katie
Masiello