Writes content to a Kubeflow provided path for output.
kf_write_output(contents, outfile)
contents | R object to save. |
---|---|
outfile | File provided by Kubeflow |
outfile
Defaults to readr::write_file()
, but uses jsonlite::write_json()
or readr::write_csv()
for appropriate classes.
predictions_table_name <- "model_predictions" mock_path <- tempfile() kf_write_output(predictions_table_name, mock_path)#> [1] "/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T//RtmpHRQELc/filea305820e64b"