CRAN Package Check Results for Package sched

Last updated on 2026-09-26 20:51:10 CEST.

Flavor Version Tinstall Tcheck Ttotal Status Flags
r-devel-linux-x86_64-debian-clang 1.0.3 8.26 69.90 78.16 OK
r-devel-linux-x86_64-debian-gcc 1.0.3 5.81 49.44 55.25 OK
r-devel-linux-x86_64-fedora-clang 1.0.3 48.68 OK
r-devel-linux-x86_64-fedora-gcc 1.0.3 53.27 OK
r-devel-windows-x86_64 1.0.3 9.00 213.00 222.00 ERROR
r-patched-linux-x86_64 1.0.3 7.97 66.31 74.28 OK
r-release-linux-x86_64 1.0.3 7.00 66.38 73.38 OK
r-release-macos-arm64 1.0.3 2.00 166.00 168.00 OK
r-release-macos-x86_64 1.0.3 5.00 279.00 284.00 OK
r-release-windows-x86_64 1.0.3 10.00 109.00 119.00 OK
r-oldrel-macos-arm64 1.0.3 OK
r-oldrel-macos-x86_64 1.0.3 5.00 135.00 140.00 OK
r-oldrel-windows-x86_64 1.0.3 11.00 127.00 138.00 OK

Check Details

Version: 1.0.3
Check: examples
Result: 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 Flavor: r-devel-windows-x86_64

Version: 1.0.3
Check: tests
Result: 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 Flavor: r-devel-windows-x86_64