Running examples in ‘rsleep-Ex.R’ failed
The error most likely occurred in:

> ### Name: a7
> ### Title: A7 spindle detection algorithm
> ### Aliases: a7
> 
> ### ** Examples
> 
> fpath <- paste0(tempdir(),"c3m2_n2_200hz_uv.csv")
> 
> download.file(
+   url = "https://rsleep.org/data/c3m2_n2_200hz_uv.csv",
+   destfile = fpath)
trying URL 'https://rsleep.org/data/c3m2_n2_200hz_uv.csv'
Warning in download.file(url = "https://rsleep.org/data/c3m2_n2_200hz_uv.csv",  :
  URL 'https://rsleep.org/data/c3m2_n2_200hz_uv.csv': status was 'SSL peer certificate or SSH remote key was not OK'
Error in download.file(url = "https://rsleep.org/data/c3m2_n2_200hz_uv.csv",  : 
  cannot open URL 'https://rsleep.org/data/c3m2_n2_200hz_uv.csv'
Execution halted
Running ‘testthat.R’ [12s/16s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > testthat::test_check("rsleep")
  Loading required package: rsleep
  trying URL 'https://rsleep.org/data/rec_1.dat'
  [ FAIL 1 | WARN 2 | SKIP 0 | PASS 74 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test_ecg.R:6:3'): Peak detection ────────────────────────────────────
  Error in `download.file("https://rsleep.org/data/rec_1.dat", path)`: cannot open URL 'https://rsleep.org/data/rec_1.dat'
  Backtrace:
      ▆
   1. └─utils::download.file("https://rsleep.org/data/rec_1.dat", path) at test_ecg.R:6:3
  
  [ FAIL 1 | WARN 2 | SKIP 0 | PASS 74 ]
  Error: Test failures
  Execution halted

installed size is  6.2Mb
  sub-directories of 1Mb or more:
    data      1.9Mb
    extdata   2.8Mb
installed size is  7.2Mb
  sub-directories of 1Mb or more:
    data      1.9Mb
    extdata   2.8Mb
    libs      1.2Mb
installed size is  7.4Mb
  sub-directories of 1Mb or more:
    data      2.0Mb
    extdata   2.8Mb
    libs      1.2Mb
installed size is  7.4Mb
  sub-directories of 1Mb or more:
    data      2.0Mb
    extdata   2.8Mb
    libs      1.2Mb
installed size is  7.2Mb
  sub-directories of 1Mb or more:
    data      1.9Mb
    extdata   2.8Mb
    libs      1.2Mb
installed size is  7.4Mb
  sub-directories of 1Mb or more:
    data      2.0Mb
    extdata   2.8Mb
    libs      1.2Mb
installed size is  7.2Mb
  sub-directories of 1Mb or more:
    data      1.9Mb
    extdata   2.8Mb
    libs      1.1Mb