Skip to contents

Generates a small report for a withings_sleep object using R Markdown.

Usage

withings_sleep_report_render(
  sleep,
  output_file,
  format = c("html", "pdf"),
  title = "Withings Sleep Report"
)

Arguments

sleep

A withings_sleep object (from withings_sleep()).

output_file

Path to write the report (e.g., "report.html" or "report.pdf").

format

One of "html" or "pdf". Defaults to "html".

title

Document title. Defaults to "Withings Sleep Report".

Value

The normalized path to the rendered file.