* using log directory 'd:/Rcompile/CRANpkg/local/3.3/webuse.Rcheck' * using R version 3.3.3 (2017-03-06) * using platform: x86_64-w64-mingw32 (64-bit) * using session charset: ISO8859-1 * checking for file 'webuse/DESCRIPTION' ... OK * this is package 'webuse' version '0.1.2' * 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 'webuse' can be installed ... OK * checking installed package size ... OK * checking package 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 ... OK * checking Rd files ... 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 examples ... ERROR Running examples in 'webuse-Ex.R' failed The error most likely occurred in: > ### Name: webuse > ### Title: webuse > ### Aliases: webuse webuselist webuse-package > > ### ** Examples > > webuse("auto") `curl` package not installed, falling back to using `url()` Warning in open.connection(con, "rb") : InternetOpenUrl failed: 'Eine Umleitungsanforderung ändert eine nicht sichere in eine sichere Verbindung.' Error in open.connection(con, "rb") : cannot open the connection Calls: webuse ... structure -> read_connection -> open -> open.connection Execution halted * checking for unstated dependencies in 'tests' ... OK * checking tests ... [2s] ERROR Running 'testthat.R' [2s] Running the tests in 'tests/testthat.R' failed. Complete output: > library("testthat") > library("webuse") > > test_check("webuse") -- 1. Error: basic download (@tests.R#4) -------------------------------------- cannot open the connection 1: expect_is(webuse("auto"), "data.frame") at testthat/tests.R:4 2: quasi_label(enquo(object), label) 3: eval_bare(get_expr(quo), get_env(quo)) 4: webuse("auto") 5: read_dta(paste0("http://www.stata-press.com/data/r", version, "/", data, ".dta")) 6: readr::datasource(file) 7: datasource_connection(file, skip, comment) 8: datasource_raw(read_connection(path), skip, comment = comment) 9: new_datasource("raw", text, skip = skip, comment = comment) 10: structure(list(x, skip = skip, comment = comment, ...), class = c(paste0("source_", type), "source")) 11: read_connection(path) 12: open(con, "rb") 13: open.connection(con, "rb") -- 2. Error: download version (@tests.R#8) ------------------------------------ cannot open the connection 1: expect_is(webuse("auto", version = 14), "data.frame") at testthat/tests.R:8 2: quasi_label(enquo(object), label) 3: eval_bare(get_expr(quo), get_env(quo)) 4: webuse("auto", version = 14) 5: read_dta(paste0("http://www.stata-press.com/data/r", version, "/", data, ".dta")) 6: readr::datasource(file) 7: datasource_connection(file, skip, comment) 8: datasource_raw(read_connection(path), skip, comment = comment) 9: new_datasource("raw", text, skip = skip, comment = comment) 10: structure(list(x, skip = skip, comment = comment, ...), class = c(paste0("source_", type), "source")) 11: read_connection(path) 12: open(con, "rb") 13: open.connection(con, "rb") -- 3. Error: data.frame added to .GlobalEnv (@tests.R#13) --------------------- cannot open the connection 1: webuse("lifeexp") at testthat/tests.R:13 2: read_dta(paste0("http://www.stata-press.com/data/r", version, "/", data, ".dta")) 3: readr::datasource(file) 4: datasource_connection(file, skip, comment) 5: datasource_raw(read_connection(path), skip, comment = comment) 6: new_datasource("raw", text, skip = skip, comment = comment) 7: structure(list(x, skip = skip, comment = comment, ...), class = c(paste0("source_", type), "source")) 8: read_connection(path) 9: open(con, "rb") 10: open.connection(con, "rb") -- 4. Error: data.frame added to specified environment (@tests.R#19) ---------- cannot open the connection 1: webuse("lifeexp", envir = e) at testthat/tests.R:19 2: read_dta(paste0("http://www.stata-press.com/data/r", version, "/", data, ".dta")) 3: readr::datasource(file) 4: datasource_connection(file, skip, comment) 5: datasource_raw(read_connection(path), skip, comment = comment) 6: new_datasource("raw", text, skip = skip, comment = comment) 7: structure(list(x, skip = skip, comment = comment, ...), class = c(paste0("source_", type), "source")) 8: read_connection(path) 9: open(con, "rb") 10: open.connection(con, "rb") == testthat results =========================================================== OK: 4 SKIPPED: 0 FAILED: 4 1. Error: basic download (@tests.R#4) 2. Error: download version (@tests.R#8) 3. Error: data.frame added to .GlobalEnv (@tests.R#13) 4. Error: data.frame added to specified environment (@tests.R#19) Error: testthat unit tests failed Execution halted * checking PDF version of manual ... OK * DONE Status: 2 ERRORs