new_name: Rename an R object you're reusing

View source: R/new_name.R

new_nameR Documentation

Rename an R object you're reusing

Description

Rename an R object you're reusing

Usage

new_name(old, new, board = reuse::board())

Arguments

old, new

String. The name of the old and new objects.

board

A pin board, created by board_folder(), board_rsconnect(), board_url() or another board_ function.

Value

The object stored as 'new'.

Examples

library(pins)

board <- board_temp()
x <- 1

x %>% reuse("old", board)
pin_exists("old", board = board)

"old" %>% new_name("new", board)
pin_exists("old", board = board)
pin_exists("new", board = board)

maurolepore/reuse documentation built on May 1, 2022, 7:34 a.m.