Learn R Programming

pins (version 0.1.1)

pin_get: Retrieve Pin

Description

Retrieves a pin by name from the local or given board.

Usage

pin_get(name, board = NULL, cache = TRUE, ...)

Arguments

name

The name of the pin.

board

The board where this pin will be retrieved from.

cache

Should the pin cache be used? Defaults to TRUE.

...

Additional parameters.

Details

pin_get() retrieves a pin by name and, by default, from the local board. You can use the board parameter to specify which board to retrieve a pin from. If a board is not specified, it will use pin_find() to find the pin across all boards and retrieve the one that matches by name.

Examples

Run this code
# NOT RUN {
library(pins)

# cache the mtcars dataset
pin(mtcars)

# retrieve the mtcars pin
pin_get("mtcars")

# retrieve mtcars pin from packages board
pin_get("easyalluvial/mtcars2", board = "packages")
# }

Run the code above in your browser using DataLab