py_estimate_sleep: Run 'estimate_sleep' with Python

View source: R/classify.R

py_estimate_sleepR Documentation

Run estimate_sleep with Python

Description

Run estimate_sleep with Python

Usage

py_estimate_sleep(
  ...,
  pyenv_function = function() {
     sleeper::py_require_sleeper()
 },
  show = FALSE
)

Arguments

...

arguments to pass to estimate_sleep

pyenv_function

function that loads the forest Python package. By default, it uses py_require_sleeper to import the package. If this function has an args argument, the output of pyenv_function will be re-assigned to args.

show

Logical, whether to show the standard output on the screen while the child process is running, passed to callr::r()

Value

Output from estimate_sleep(), a tibble of times and classification of sleep.


sleeper documentation built on Sept. 17, 2026, 5:08 p.m.