Skip to contents

Rewrite a CSV that may have issues with export from SensorLog

Usage

acti_rewrite_sensorlog_csv(
  path,
  outfile = tempfile(fileext = ".csv"),
  verbose = TRUE
)

Arguments

path

Input CSV file

outfile

Output CSV file

verbose

Print Diagnostic messages

Value

A file path to the new CSV

Examples

sl_file = actiread::acti_example_sensorlog_file()
tfile = tempfile()
files = utils::unzip(sl_file, exdir = tfile)
result = actiread::acti_rewrite_sensorlog_csv(files)
#> File being processed:
#> /tmp/Rtmpt6EZHv/file1b0747717eb8/SensorLogFiles_my_iOS_device_250311_14-55-58_2/2025-03-11_14_44_11_my_iOS_device.csv