Skip to contents

The board information is needed as an input for the pre-made sklearn CLI.

Usage

rpwf_write_board_yaml(board, file)

# S3 method for pins_board_folder
rpwf_write_board_yaml(board, file)

Arguments

board

pins::board object.

file

path to export the YAML file.

Value

named list for YAML

Examples

board <- pins::board_temp()
tmp_dir <- tempdir()
rpwf_write_board_yaml(board, paste(tmp_dir, "board.yml", sep = "/"))
list.files(tmp_dir)
#>  [1] "board.yml"                                                                                            
#>  [2] "bslib-fb62fe962e9dcc2ce720fd54a22687bd"                                                               
#>  [3] "db.SQLite"                                                                                            
#>  [4] "downlit"                                                                                              
#>  [5] "file24b4298e7c30"                                                                                     
#>  [6] "file24b42af9546"                                                                                      
#>  [7] "file24b43342e488"                                                                                     
#>  [8] "file24b43b0859a"                                                                                      
#>  [9] "file24b43d19997b"                                                                                     
#> [10] "file24b44aa4b2ec"                                                                                     
#> [11] "file24b46473d903"                                                                                     
#> [12] "file24b465c8ead2"                                                                                     
#> [13] "file24b4704f839f"                                                                                     
#> [14] "file24b47baf2b75"                                                                                     
#> [15] "file24b48531834"                                                                                      
#> [16] "pins-24b4167fc505"                                                                                    
#> [17] "pins-24b4293922be"                                                                                    
#> [18] "pins-24b43d571bf"                                                                                     
#> [19] "pins-24b4402a9a77"                                                                                    
#> [20] "pins-24b4431a9c16"                                                                                    
#> [21] "pins-24b458c94d49"                                                                                    
#> [22] "pins-24b4643e2449"                                                                                    
#> [23] "pins-24b46a7b8642"                                                                                    
#> [24] "pins-24b48c7999b"                                                                                     
#> [25] "pins-24b4b9b4d20"                                                                                     
#> [26] "repos_https%3A%2F%2Fpackagemanager.rstudio.com%2Fall%2F__linux__%2Fjammy%2Flatest%2Fsrc%2Fcontrib.rds"
#> [27] "rpwf"