board_deparse: Deparse a board object

Description Usage Arguments Value Examples

View source: R/board.R

Description

Returns the R code that would recreate the board when re-run on another computer. Goal is to capture the location of the board, but not the authorisation, since (a) that would leak credentials and (b) in most deployment scenarios board auth will be read from env vars.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
board_deparse(board, ...)

## S3 method for class 'pins_board_azure'
board_deparse(board, ...)

## S3 method for class 'pins_board_folder'
board_deparse(board, ...)

## S3 method for class 'pins_board_kaggle_competition'
board_deparse(board, ...)

## S3 method for class 'pins_board_kaggle_dataset'
board_deparse(board, ...)

## S3 method for class 'pins_board_rsconnect'
board_deparse(board, ...)

## S3 method for class 'pins_board_s3'
board_deparse(board, ...)

Arguments

board

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

...

Additional arguments passed on to methods for a specific board.

Value

A call.

Examples

1
2
3
4
5
6
## Not run: 
board <- board_rsconnect()
# Generate code to access this board from elsewhere
board_deparse(board)

## End(Not run)

pins documentation built on Oct. 2, 2021, 5:06 p.m.