ll_write_device_data_logs_to_file: Save device data logs

View source: R/file_write.R

ll_write_device_data_logs_to_fileR Documentation

Save device data logs

Description

Write device data logs to an .rds, .xlsx (excel), and/or .csv file and optionally compress them into a zip archive. Note that target files will be overwritten if they already exist.

Usage

ll_write_device_data_logs_to_file(
  device_data_logs,
  file_path,
  zip = FALSE,
  quiet = default(quiet)
)

Arguments

device_data_logs

data logs to save

file_path

path to the .rds, .xlsx and/or .csv files (can be multiple). All folders must already exist.

zip

whether to zip the resulting file(s). Use zip = TRUE to have the function infer the zip file name from the .rds/.xlsx file path, or alternatively provide a file path with a specific name for the zip file (zip = file.path(...)).

generate_rmd

whether to generate an RMarkdown file for analysis. If both .rds and .xlsx file paths are provided, reads from the one listed first. Use generate_rmd = TRUE to have the function infer the Rmd file name from the .rds/.xlsx file path, or alternatively provide a file path with a specific name for the Rmd file (generate_rmd = file.path(...)).

Value

returns the logs invisibly for piping

See Also

Other data logs functions: ll_get_device_data_logs(), ll_plot_device_data_logs(), ll_read_device_data_logs_from_file()


KopfLab/lablogger documentation built on July 6, 2023, 12:03 a.m.