- using R Under development (unstable) (2026-09-21 r90579 ucrt)
- using platform: x86_64-w64-mingw32
- R was compiled by
gcc.exe (GCC) 14.3.0
GNU Fortran (GCC) 14.3.0
- running under: Windows Server 2022 x64 (build 20348)
- using session charset: UTF-8
* current time: 2026-09-24 23:38:29 UTC
- checking for file 'sched/DESCRIPTION' ... OK
- this is package 'sched' version '1.0.3'
- package encoding: UTF-8
- checking package namespace information ... OK
- checking package dependencies ... OK
- checking if this is a source package ... OK
- checking if there is a namespace ... OK
- checking for hidden files and directories ... OK
- checking for portable file names ... OK
- checking whether package 'sched' can be installed ... OK
See the install log for details.
- checking installed package size ... OK
- checking package directory ... OK
- checking 'build' directory ... OK
- checking DESCRIPTION meta-information ... OK
- checking top-level files ... OK
- checking for left-over files ... OK
- checking index information ... OK
- checking package subdirectories ... OK
- checking code files for non-ASCII characters ... OK
- checking R files for syntax errors ... OK
- checking whether the package can be loaded ... [2s] OK
- checking whether the package can be loaded with stated dependencies ... [2s] OK
- checking whether the package can be unloaded cleanly ... [2s] OK
- checking whether the namespace can be loaded with stated dependencies ... [1s] OK
- checking whether the namespace can be unloaded cleanly ... [1s] OK
- checking loading without being on the library search path ... [2s] OK
- checking use of S3 registration ... OK
- checking dependencies in R code ... OK
- checking S3 generic/method consistency ... OK
- checking replacement functions ... OK
- checking foreign function calls ... OK
- checking R code for possible problems ... [5s] OK
- checking Rd files ... [1s] OK
- checking Rd metadata ... OK
- checking Rd cross-references ... OK
- checking for missing documentation entries ... OK
- checking for code/documentation mismatches ... OK
- checking Rd \usage sections ... OK
- checking Rd contents ... OK
- checking for unstated dependencies in examples ... OK
- checking installed files from 'inst/doc' ... OK
- checking files in 'vignettes' ... OK
- checking examples ... [9s] ERROR
Running examples in 'sched-Ex.R' failed
The error most likely occurred in:
> ### Name: Scheduler
> ### Title: Class for scheduling web requests.
> ### Aliases: Scheduler
>
> ### ** Examples
>
> # Create a scheduler instance without cache
> scheduler <- sched::Scheduler$new(cache_dir = NULL)
>
> # Define a rule with default values
> scheduler$setRule('www.ebi.ac.uk')
>
> # Create a request object
> u <- 'https://www.ebi.ac.uk/webservices/chebi/2.0/test/getCompleteEntity'
> url <- sched::URL$new(url=u, params=c(chebiId=15440))
> request <- sched::Request$new(url)
>
> # Send the request and get the content result
> content <- scheduler$sendRequest(request)
INFO [01:39:18.385] Error when retrieving URL content HTTP error 404 (""). When contacting URL "https://www.ebi.ac.uk/webservices/chebi/2.0/test/getCompleteEntity?chebiId=15440". Retrying connection to server...
INFO [01:39:18.772] Error when retrieving URL content HTTP error 404 (""). When contacting URL "https://www.ebi.ac.uk/webservices/chebi/2.0/test/getCompleteEntity?chebiId=15440". Retrying connection to server...
INFO [01:39:19.004] Error when retrieving URL content HTTP error 404 (""). When contacting URL "https://www.ebi.ac.uk/webservices/chebi/2.0/test/getCompleteEntity?chebiId=15440". Retrying connection to server...
INFO [01:39:19.228] Error when retrieving URL content HTTP error 404 (""). When contacting URL "https://www.ebi.ac.uk/webservices/chebi/2.0/test/getCompleteEntity?chebiId=15440". Retrying connection to server...
INFO [01:39:19.620] Error when retrieving URL content HTTP error 404 (""). When contacting URL "https://www.ebi.ac.uk/webservices/chebi/2.0/test/getCompleteEntity?chebiId=15440". Retrying connection to server...
INFO [01:39:20.006] Error when retrieving URL content HTTP error 404 (""). When contacting URL "https://www.ebi.ac.uk/webservices/chebi/2.0/test/getCompleteEntity?chebiId=15440". Retrying connection to server...
INFO [01:39:20.221] Error when retrieving URL content HTTP error 404 (""). When contacting URL "https://www.ebi.ac.uk/webservices/chebi/2.0/test/getCompleteEntity?chebiId=15440". Retrying connection to server...
INFO [01:39:20.448] Error when retrieving URL content HTTP error 404 (""). When contacting URL "https://www.ebi.ac.uk/webservices/chebi/2.0/test/getCompleteEntity?chebiId=15440". Retrying connection to server...
INFO [01:39:20.834] Error when retrieving URL content HTTP error 404 (""). When contacting URL "https://www.ebi.ac.uk/webservices/chebi/2.0/test/getCompleteEntity?chebiId=15440". Retrying connection to server...
INFO [01:39:21.322] Error when retrieving URL content HTTP error 404 (""). When contacting URL "https://www.ebi.ac.uk/webservices/chebi/2.0/test/getCompleteEntity?chebiId=15440". Retrying connection to server...
>
>
> ## ------------------------------------------------
> ## Method `Scheduler$new`
> ## ------------------------------------------------
>
> # Create a scheduler instance with a custom default_rule
> scheduler <- sched::Scheduler$new(default_rule=sched::Rule$new(10, 1),
+ cache_dir = NULL)
>
>
> ## ------------------------------------------------
> ## Method `Scheduler$setRule`
> ## ------------------------------------------------
>
> # Create a scheduler instance
> scheduler <- sched::Scheduler$new(cache_dir = NULL)
>
> # Define a rule with default values
> scheduler$setRule('www.ebi.ac.uk')
>
> # Define a rule with custome values
> scheduler$setRule('my.other.site', n=10, lap=3)
>
>
> ## ------------------------------------------------
> ## Method `Scheduler$sendRequest`
> ## ------------------------------------------------
>
> # Create a scheduler instance
> scheduler <- sched::Scheduler$new(cache_dir = NULL)
>
> # Define a scheduling rule of 7 requests every 2 seconds
> scheduler$setRule('www.ebi.ac.uk', n=7, lap=2)
>
> # Create a request object
> u <- 'https://www.ebi.ac.uk/webservices/chebi/2.0/test/getCompleteEntity'
> url <- sched::URL$new(url=u, params=c(chebiId=15440))
> request <- sched::Request$new(url)
>
> # Send the request and get the content result
> content <- scheduler$sendRequest(request)
INFO [01:39:21.549] Error when retrieving URL content HTTP error 404 (""). When contacting URL "https://www.ebi.ac.uk/webservices/chebi/2.0/test/getCompleteEntity?chebiId=15440". Retrying connection to server...
INFO [01:39:21.757] Error when retrieving URL content HTTP error 404 (""). When contacting URL "https://www.ebi.ac.uk/webservices/chebi/2.0/test/getCompleteEntity?chebiId=15440". Retrying connection to server...
INFO [01:39:21.971] Error when retrieving URL content HTTP error 404 (""). When contacting URL "https://www.ebi.ac.uk/webservices/chebi/2.0/test/getCompleteEntity?chebiId=15440". Retrying connection to server...
INFO [01:39:22.283] Error when retrieving URL content HTTP error 404 (""). When contacting URL "https://www.ebi.ac.uk/webservices/chebi/2.0/test/getCompleteEntity?chebiId=15440". Retrying connection to server...
INFO [01:39:22.499] Error when retrieving URL content HTTP error 404 (""). When contacting URL "https://www.ebi.ac.uk/webservices/chebi/2.0/test/getCompleteEntity?chebiId=15440". Retrying connection to server...
INFO [01:39:22.708] Error when retrieving URL content HTTP error 404 (""). When contacting URL "https://www.ebi.ac.uk/webservices/chebi/2.0/test/getCompleteEntity?chebiId=15440". Retrying connection to server...
INFO [01:39:22.917] Error when retrieving URL content HTTP error 404 (""). When contacting URL "https://www.ebi.ac.uk/webservices/chebi/2.0/test/getCompleteEntity?chebiId=15440". Retrying connection to server...
INFO [01:39:23.556] Error when retrieving URL content HTTP error 404 (""). When contacting URL "https://www.ebi.ac.uk/webservices/chebi/2.0/test/getCompleteEntity?chebiId=15440". Retrying connection to server...
INFO [01:39:23.774] Error when retrieving URL content HTTP error 404 (""). When contacting URL "https://www.ebi.ac.uk/webservices/chebi/2.0/test/getCompleteEntity?chebiId=15440". Retrying connection to server...
INFO [01:39:24.003] Error when retrieving URL content HTTP error 404 (""). When contacting URL "https://www.ebi.ac.uk/webservices/chebi/2.0/test/getCompleteEntity?chebiId=15440". Retrying connection to server...
>
>
> ## ------------------------------------------------
> ## Method `Scheduler$downloadFile`
> ## ------------------------------------------------
>
> # Create a scheduler instance
> scheduler <- sched::Scheduler$new(cache_dir = NULL)
>
> # Create a temporary directory
> tmp_dir <- tempdir()
>
> # Download a file
> u <- sched::URL$new(
+ 'https://gitlab.com/cnrgh/databases/r-sched/-/raw/main/README.md',
+ c(ref_type='heads'))
> scheduler$downloadFile(u, file.path(tmp_dir, 'README.md'))
trying URL 'https://gitlab.com/cnrgh/databases/r-sched/-/raw/main/README.md?ref_type=heads'
Warning in utils::download.file(url = url, destfile = dest_file, mode = "wb", :
cannot open URL 'https://gitlab.com/cnrgh/databases/r-sched/-/raw/main/README.md?ref_type=heads': HTTP status was '502 Bad Gateway'
Error in utils::download.file(url = url, destfile = dest_file, mode = "wb", :
cannot open URL 'https://gitlab.com/cnrgh/databases/r-sched/-/raw/main/README.md?ref_type=heads'
Calls: <Anonymous> -> <Anonymous>
Execution halted
- checking for unstated dependencies in 'tests' ... OK
- checking tests ... [119s] ERROR
Running 'testthat.R' [118s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
> # Script needed to run testthat automatically from ‘R CMD check’. See
> # testthat::test_dir documentation.
> library(testthat)
> library(sched)
> test_check("sched")
trying URL 'https://gitlab.com/cnrgh/databases/r-sched/-/raw/main/README.md?ref_type=heads'
Saving _problems/test_080_scheduler-120.R
[ FAIL 1 | WARN 1 | SKIP 1 | PASS 235 ]
══ Skipped tests (1) ═══════════════════════════════════════════════════════════
• empty test (1):
══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('test_080_scheduler.R:120:5'): We can download a file. ───────────────
Error in `utils::download.file(url = url, destfile = dest_file, mode = "wb", method = "auto", cacheOK = FALSE, quiet = quiet)`: cannot open URL 'https://gitlab.com/cnrgh/databases/r-sched/-/raw/main/README.md?ref_type=heads'
Backtrace:
▆
1. └─scheduler$downloadFile(u, out_file) at test_080_scheduler.R:120:5
2. └─utils::download.file(...)
[ FAIL 1 | WARN 1 | SKIP 1 | PASS 235 ]
Error:
! Test failures.
Execution halted
- checking for unstated dependencies in vignettes ... OK
- checking package vignettes ... OK
- checking re-building of vignette outputs ... [13s] OK
- checking PDF version of manual ... [20s] OK
- checking HTML version of manual ... [2s] OK
- DONE
Status: 2 ERRORs