sl_models: Check for Downloaded Sleep Models

sl_have_modelsR Documentation

Check for Downloaded Sleep Models

Description

Check for Downloaded Sleep Models

Usage

sl_have_models(model_dir)

sl_download_models(
  model_dir,
  quiet = FALSE,
  ...,
  overwrite = FALSE,
  folds = 1:5
)

Arguments

model_dir

path to the folder with models from \Sexpr[results=rd]{tools:::Rd_expr_doi("10.5281/zenodo.3752645")}

quiet

argument passed to curl::curl_download

...

additional arguments to pass to curl::curl_download

overwrite

logical, if TRUE will overwrite existing files

folds

should all model folds be downloaded? If only some folds, specify that (used almost exclusively for testing).

Value

A logical indicating all folds are downloaded.


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