# NOT RUN {
# Use the first 5 rows from sample data
df = sample_raw_accel_data[1:5,]
head(df)
# Save to current path with default mocked actilife and firmware versions
filepath = tempfile()
export_to_actilife(df, filepath)
# The saved file will have the same format as Actigraph csv files
readLines(filepath)
# Cleanup
file.remove(filepath)
# }
Run the code above in your browser using DataLab