save_file: Save files for different types of files and for development...

View source: R/save_file.R

save_fileR Documentation

Save files for different types of files and for development work

Description

Save files for different types of files and for development work.

Usage

save_file(
  dataset,
  filename,
  out_folder = c("base_file", "output", "tde", "open_data"),
  type = c("csv", "rds", "xlsx"),
  dev = F,
  overwrite
)

Arguments

dataset

The object that you want to save.

filename

A character string with name of output file.

type

A character string with name of file extension. This can be csv, rds or xlsx

dev

A character string. It add a "dev_version" bit to the filename to be able to identify development work #' @param overwrite A logical value. To allow overwriting or not of files

outfolder

A character string with name of destination folder. This can be "base_file", "tde" or "output".


NHS-NSS-transforming-publications/hsmr documentation built on June 30, 2024, 11:48 a.m.