* using log directory 'd:/Rcompile/CRANpkg/local/4.1/occupationMeasurement.Rcheck' * using R version 4.1.3 (2022-03-10) * using platform: x86_64-w64-mingw32 (64-bit) * using session charset: ISO8859-1 * checking for file 'occupationMeasurement/DESCRIPTION' ... OK * this is package 'occupationMeasurement' version '0.2.0' * 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 'occupationMeasurement' can be installed ... OK * 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 R files for non-ASCII characters ... OK * checking R files for syntax errors ... OK * checking whether the package can be loaded ... OK * checking whether the package can be loaded with stated dependencies ... OK * checking whether the package can be unloaded cleanly ... OK * checking whether the namespace can be loaded with stated dependencies ... OK * checking whether the namespace can be unloaded cleanly ... OK * checking loading without being on the library search path ... 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 ... [11s] 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 contents of 'data' directory ... OK * checking data for non-ASCII characters ... OK * checking LazyData ... OK * checking data for ASCII and uncompressed saves ... OK * checking installed files from 'inst/doc' ... OK * checking files in 'vignettes' ... OK * checking examples ... [10s] ERROR Running examples in 'occupationMeasurement-Ex.R' failed The error most likely occurred in: > ### Name: load_kldb_raw > ### Title: Clean & Load KldB 2010 dataset. > ### Aliases: load_kldb_raw load_kldb > > ### ** Examples > > # We recommend using a non-temporary directory for caching, so data is > # downloaded only once and not time and time again > cache_dir <- tempdir() > # Note: The dataset will be downloaded from the internet > # Load the cleaned dataset > load_kldb(cache_dir = cache_dir) [1] "Using a modified version of the KldB 2010.\nPlease mind the terms of use of the original KldB dataset (German):\n\n (c) Statistik der Bundesagentur für Arbeit\n Sie können Informationen speichern, (auch auszugsweise) mit Quellenangabe\n weitergeben, vervielfältigen und verbreiten. Die Inhalte dürfen nicht\n verändert oder verfälscht werden. Eigene Berechnungen sind erlaubt, jedoch\n als solche kenntlich zu machen. Im Falle einer Zugänglichmachung im\n Internet soll dies in Form einer Verlinkung auf die Homepage der Statistik\n der Bundesagentur für Arbeit erfolgen. Die Nutzung der Inhalte für\n gewerbliche Zwecke, ausgenommen Presse, Rundfunk und Fernsehen und\n wissenschaftliche Publikationen, bedarf der Genehmigung durch die Statistik\n der Bundesagentur für Arbeit.\n " trying URL 'https://www.klassifikationsserver.de/klassService/jsp/variant/downloadexport?type=EXPORT_CSV_VARIANT&variant=kldb2010&language=DE' Warning in utils::download.file(url, destfile = kldb_archive_path, mode = "wb") : InternetOpenUrl failed: 'Die Serververbindung konnte nicht hergestellt werden.' Error in utils::download.file(url, destfile = kldb_archive_path, mode = "wb") : cannot open URL 'https://www.klassifikationsserver.de/klassService/jsp/variant/downloadexport?type=EXPORT_CSV_VARIANT&variant=kldb2010&language=DE' Calls: load_kldb -> load_kldb_raw -> Execution halted * checking for unstated dependencies in 'tests' ... OK * checking tests ... [14s] ERROR Running 'testthat.R' [14s] Running the tests in 'tests/testthat.R' failed. Complete output: > library(testthat) > library(occupationMeasurement) > > test_check("occupationMeasurement") Initiating curl with CURL_SSL_BACKEND: openssl [ FAIL 1 | WARN 0 | SKIP 21 | PASS 35 ] == Skipped tests =============================================================== * On CRAN (21) == Failed tests ================================================================ -- Failure ('test-api.R:155:3'): endpoint '/v1/suggestions' works (for KldB) --- r$status_code (`actual`) not equal to 200 (`expected`). `actual`: 500 `expected`: 200 [ FAIL 1 | WARN 0 | SKIP 21 | PASS 35 ] Error: Test failures Execution halted * checking for unstated dependencies in vignettes ... OK * checking package vignettes in 'inst/doc' ... OK * checking re-building of vignette outputs ... [11s] OK * checking PDF version of manual ... OK * DONE Status: 2 ERRORs