Running ‘testthat.R’ [289s/470s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > # This file is part of the standard setup for testthat.
  > # It is recommended that you do not modify it.
  > #
  > # Where should you do additional test configuration?
  > # Learn more about the roles of various files in:
  > # * https://r-pkgs.org/testing-design.html#sec-tests-files-overview
  > # * https://testthat.r-lib.org/articles/special-files.html
  > library(testthat)
  > library(asleep)
  > 
  > asleep:::cleanup_uv_lock_files(
  +   c(".", tempdir(), dirname(tempdir()))
  + )
  > testthat::test_check("asleep")
  Downloading cpython-3.8.20-linux-x86_64-gnu (download) (19.9MiB)
   Downloaded cpython-3.8.20-linux-x86_64-gnu (download)
     Updating https://github.com/muschellij2/asleep.git (HEAD)
      Updated https://github.com/muschellij2/asleep.git (4916a50c61dfe513a04ab340da3bfc4bd93dc96d)
     Building asleep @ git+https://github.com/muschellij2/asleep.git@4916a50c61dfe513a04ab340da3bfc4bd93dc96d
  Downloading numba (3.5MiB)
  Downloading transforms3d (1.3MiB)
  Downloading triton (199.7MiB)
  Downloading nvidia-cuda-cupti-cu12 (13.5MiB)
  Downloading pillow (4.3MiB)
  Downloading sympy (5.9MiB)
  Downloading scipy (32.9MiB)
  Downloading networkx (2.0MiB)
  Downloading torchvision (6.7MiB)
  Downloading nvidia-cuda-nvrtc-cu12 (22.6MiB)
  Downloading fonttools (4.5MiB)
  Downloading nvidia-cufft-cu12 (116.0MiB)
  Downloading nvidia-curand-cu12 (53.9MiB)
  Downloading pandas (11.8MiB)
  Downloading llvmlite (41.6MiB)
  Downloading numpy (16.5MiB)
  Downloading kiwisolver (1.1MiB)
  Downloading nvidia-cublas-cu12 (391.6MiB)
  Downloading nvidia-nvjitlink-cu12 (37.9MiB)
  Downloading matplotlib (8.8MiB)
  Downloading nvidia-cusolver-cu12 (118.4MiB)
  Downloading nvidia-nccl-cu12 (168.1MiB)
  Downloading nvidia-cusparse-cu12 (186.9MiB)
  Downloading nvidia-cudnn-cu12 (634.0MiB)
  Downloading torch (760.2MiB)
  Downloading statsmodels (10.4MiB)
  Downloading scikit-learn (29.8MiB)
     Building antlr4-python3-runtime==4.9.3
     Building importlib==1.0.4
        Built importlib==1.0.4
        Built antlr4-python3-runtime==4.9.3
   Downloaded kiwisolver
   Downloaded transforms3d
        Built asleep @ git+https://github.com/muschellij2/asleep.git@4916a50c61dfe513a04ab340da3bfc4bd93dc96d
   Downloaded networkx
   Downloaded pillow
   Downloaded numba
   Downloaded fonttools
   Downloaded torchvision
   Downloaded matplotlib
   Downloaded sympy
   Downloaded nvidia-cuda-cupti-cu12
   Downloaded pandas
   Downloaded nvidia-cuda-nvrtc-cu12
   Downloaded statsmodels
   Downloaded numpy
   Downloaded scipy
   Downloaded nvidia-nvjitlink-cu12
   Downloaded scikit-learn
   Downloaded llvmlite
   Downloaded nvidia-curand-cu12
   Downloaded nvidia-cufft-cu12
   Downloaded nvidia-cusolver-cu12
   Downloaded nvidia-nccl-cu12
   Downloaded nvidia-cusparse-cu12
   Downloaded triton
   Downloaded nvidia-cublas-cu12
   Downloaded nvidia-cudnn-cu12
   Downloaded torch
  Installed 63 packages in 351ms
  Checking Data
  File is:/home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/asleep/extdata/example_sleep.csv.gz
  Downloading models if not already present
  Downloading https://github.com/OxWearables/asleep/releases/download/0.4.12/ssl.joblib.lzma...
  Saved to /home/hornik/tmp/scratch/check-CRAN-regular-hornik/cache/R/reticulate/uv/cache/archive-v0/EqSlXxB2Pk2HD8oR/lib/python3.8/site-packages/asleep/ssl.joblib.lzma
  Caching ssl-wearables repository...
  Downloading: "https://github.com/OxWearables/ssl-wearables/zipball/v1.0.0" to /home/hornik/tmp/scratch/check-CRAN-regular-hornik/cache/R/reticulate/uv/cache/archive-v0/EqSlXxB2Pk2HD8oR/lib/python3.8/site-packages/asleep/torch_hub_cache/v1.0.0.zip
  Saving _problems/test-asleep-20.R
  Lowpass filter...
  Skipping lowpass filter: data sample rate 30 too low for cutoff rate 20
  Lowpass filter... Done! (0.00s)
  Gravity calibration...
  /home/hornik/tmp/scratch/check-CRAN-regular-hornik/cache/R/reticulate/uv/cache/archive-v0/EqSlXxB2Pk2HD8oR/lib/python3.8/site-packages/asleep/utils.py:44: UserWarning: Could not infer format, so each element will be parsed individually, falling back to `dateutil`. To ensure parsing is consistent and as-expected, please specify a format.
    data = pd.read_csv(
  Gravity calibration... Done! (0.17s)
  Resampling...
  Resampling... Done! (0.10s)
  {'WearTime(days)': 0.1666662808564815, 'NonwearTime(days)': 0.0, 'NumNonwearEpisodes': 0}
  [ FAIL 1 | WARN 0 | SKIP 0 | PASS 67 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-asleep.R:20:5'): asleep model works ────────────────────────────
  <urllib.error.HTTPError/urllib.error.URLError/python.builtin.OSError/python.builtin.Exception/python.builtin.BaseException/urllib.response.addinfourl/urllib.response.addinfo/urllib.response.addbase/tempfile._TemporaryFileWrapper/python.builtin.object/error/condition>
  Error in `py_call_impl(callable, call_args$unnamed, call_args$named)`: urllib.error.HTTPError: HTTP Error 429: Too Many Requests
  Run `reticulate::py_last_error()` for details.
  Backtrace:
      ▆
   1. └─asleep::asleep(file = file, verbose = 2L, force_download = TRUE) at test-asleep.R:20:5
   2.   └─asleep::sl_download_models(force_download = force_download)
   3.     └─abase_noconvert$get_sleep$download_models(force_download = force_download)
   4.       └─reticulate:::py_call_impl(callable, call_args$unnamed, call_args$named)
  
  [ FAIL 1 | WARN 0 | SKIP 0 | PASS 67 ]
  Error:
  ! Test failures.
  Execution halted