CRAN Package Check Results for Package binman

Last updated on 2018-04-29 01:46:33 CEST.

Flavor Version Tinstall Tcheck Ttotal Status Flags
r-devel-linux-x86_64-debian-clang 0.1.0 1.55 26.81 28.36 ERROR
r-devel-linux-x86_64-debian-gcc 0.1.0 1.68 23.51 25.19 ERROR
r-devel-linux-x86_64-fedora-clang 0.1.0 34.70 ERROR
r-devel-linux-x86_64-fedora-gcc 0.1.0 33.28 ERROR
r-devel-windows-ix86+x86_64 0.1.0 5.00 56.00 61.00 ERROR
r-patched-linux-x86_64 0.1.0 1.21 26.71 27.92 ERROR
r-patched-solaris-x86 0.1.0 55.30 ERROR
r-release-linux-x86_64 0.1.0 1.54 26.76 28.30 ERROR
r-release-windows-ix86+x86_64 0.1.0 5.00 56.00 61.00 ERROR
r-release-osx-x86_64 0.1.0 ERROR
r-oldrel-windows-ix86+x86_64 0.1.0 3.00 59.00 62.00 ERROR
r-oldrel-osx-x86_64 0.1.0 OK

Check Details

Version: 0.1.0
Check: tests
Result: ERROR
     Running ‘testthat.R’ [1s/2s]
    Running the tests in ‘tests/testthat.R’ failed.
    Complete output:
     > library(testthat)
     > library(binman)
     >
     > test_check("binman")
     ── 1. Error: canDownloadFiles (@test-download_files.R#9) ──────────────────────
     Can't mock functions in base packages (base)
     1: with_mock(`httr::GET` = function(...) {
     test_llres
     }, `base::dir.create` = function(...) {
     TRUE
     }, dlfiles <- download_files(dllist)) at testthat/test-download_files.R:9
     2: extract_mocks(new_values = new_values[!code_pos], .env = .env, eval_env = parent.frame())
     3: lapply(stats::setNames(nm = mock_qual_names), function(qual_name) {
     pkg_name <- gsub(pkg_and_name_rx, "\\1", qual_name)
     if (is_base_pkg(pkg_name)) {
     stop("Can't mock functions in base packages (", pkg_name, ")", call. = FALSE)
     }
     name <- gsub(pkg_and_name_rx, "\\2", qual_name)
     if (pkg_name == "")
     pkg_name <- .env
     env <- asNamespace(pkg_name)
     if (!exists(name, envir = env, mode = "function"))
     stop("Function ", name, " not found in environment ", environmentName(env),
     ".", call. = FALSE)
     mock(name = name, env = env, new = eval(new_values[[qual_name]], eval_env, eval_env))
     })
     4: FUN(X[[i]], ...)
     5: stop("Can't mock functions in base packages (", pkg_name, ")", call. = FALSE)
    
     ── 2. Error: canReturnEmptyDFWhenEmptyDownloadFiles (@test-download_files.R#27)
     Can't mock functions in base packages (base)
     1: with_mock(`httr::GET` = function(...) {
     test_llres
     }, `base::dir.create` = function(...) {
     TRUE
     }, dlfiles <- download_files(dllist)) at testthat/test-download_files.R:27
     2: extract_mocks(new_values = new_values[!code_pos], .env = .env, eval_env = parent.frame())
     3: lapply(stats::setNames(nm = mock_qual_names), function(qual_name) {
     pkg_name <- gsub(pkg_and_name_rx, "\\1", qual_name)
     if (is_base_pkg(pkg_name)) {
     stop("Can't mock functions in base packages (", pkg_name, ")", call. = FALSE)
     }
     name <- gsub(pkg_and_name_rx, "\\2", qual_name)
     if (pkg_name == "")
     pkg_name <- .env
     env <- asNamespace(pkg_name)
     if (!exists(name, envir = env, mode = "function"))
     stop("Function ", name, " not found in environment ", environmentName(env),
     ".", call. = FALSE)
     mock(name = name, env = env, new = eval(new_values[[qual_name]], eval_env, eval_env))
     })
     4: FUN(X[[i]], ...)
     5: stop("Can't mock functions in base packages (", pkg_name, ")", call. = FALSE)
    
     ── 3. Error: canProcessYaml (@test-process_yaml.R#7) ──────────────────────────
     Can't mock functions in base packages (base)
     1: testthat::with_mock(`httr::GET` = function(...) {
     test_llres
     }, `base::dir.create` = function(...) {
     TRUE
     }, `utils::unzip` = function(zipfile, list = FALSE, ...) {
     if (list) {
     list(Name = zipfile)
     }
     else {
     zipfile
     }
     }, procyml <- process_yaml(ymlfile)) at testthat/test-process_yaml.R:7
     2: extract_mocks(new_values = new_values[!code_pos], .env = .env, eval_env = parent.frame())
     3: lapply(stats::setNames(nm = mock_qual_names), function(qual_name) {
     pkg_name <- gsub(pkg_and_name_rx, "\\1", qual_name)
     if (is_base_pkg(pkg_name)) {
     stop("Can't mock functions in base packages (", pkg_name, ")", call. = FALSE)
     }
     name <- gsub(pkg_and_name_rx, "\\2", qual_name)
     if (pkg_name == "")
     pkg_name <- .env
     env <- asNamespace(pkg_name)
     if (!exists(name, envir = env, mode = "function"))
     stop("Function ", name, " not found in environment ", environmentName(env),
     ".", call. = FALSE)
     mock(name = name, env = env, new = eval(new_values[[qual_name]], eval_env, eval_env))
     })
     4: FUN(X[[i]], ...)
     5: stop("Can't mock functions in base packages (", pkg_name, ")", call. = FALSE)
    
     ══ testthat results ═══════════════════════════════════════════════════════════
     OK: 28 SKIPPED: 0 FAILED: 3
     1. Error: canDownloadFiles (@test-download_files.R#9)
     2. Error: canReturnEmptyDFWhenEmptyDownloadFiles (@test-download_files.R#27)
     3. Error: canProcessYaml (@test-process_yaml.R#7)
    
     Error: testthat unit tests failed
     Execution halted
Flavors: r-devel-linux-x86_64-debian-clang, r-devel-linux-x86_64-debian-gcc, r-patched-linux-x86_64, r-release-linux-x86_64

Version: 0.1.0
Check: tests
Result: ERROR
     Running ‘testthat.R’
    Running the tests in ‘tests/testthat.R’ failed.
    Complete output:
     > library(testthat)
     > library(binman)
     >
     > test_check("binman")
     ── 1. Error: canDownloadFiles (@test-download_files.R#9) ──────────────────────
     Can't mock functions in base packages (base)
     1: with_mock(`httr::GET` = function(...) {
     test_llres
     }, `base::dir.create` = function(...) {
     TRUE
     }, dlfiles <- download_files(dllist)) at testthat/test-download_files.R:9
     2: extract_mocks(new_values = new_values[!code_pos], .env = .env, eval_env = parent.frame())
     3: lapply(stats::setNames(nm = mock_qual_names), function(qual_name) {
     pkg_name <- gsub(pkg_and_name_rx, "\\1", qual_name)
     if (is_base_pkg(pkg_name)) {
     stop("Can't mock functions in base packages (", pkg_name, ")", call. = FALSE)
     }
     name <- gsub(pkg_and_name_rx, "\\2", qual_name)
     if (pkg_name == "")
     pkg_name <- .env
     env <- asNamespace(pkg_name)
     if (!exists(name, envir = env, mode = "function"))
     stop("Function ", name, " not found in environment ", environmentName(env),
     ".", call. = FALSE)
     mock(name = name, env = env, new = eval(new_values[[qual_name]], eval_env, eval_env))
     })
     4: FUN(X[[i]], ...)
     5: stop("Can't mock functions in base packages (", pkg_name, ")", call. = FALSE)
    
     ── 2. Error: canReturnEmptyDFWhenEmptyDownloadFiles (@test-download_files.R#27)
     Can't mock functions in base packages (base)
     1: with_mock(`httr::GET` = function(...) {
     test_llres
     }, `base::dir.create` = function(...) {
     TRUE
     }, dlfiles <- download_files(dllist)) at testthat/test-download_files.R:27
     2: extract_mocks(new_values = new_values[!code_pos], .env = .env, eval_env = parent.frame())
     3: lapply(stats::setNames(nm = mock_qual_names), function(qual_name) {
     pkg_name <- gsub(pkg_and_name_rx, "\\1", qual_name)
     if (is_base_pkg(pkg_name)) {
     stop("Can't mock functions in base packages (", pkg_name, ")", call. = FALSE)
     }
     name <- gsub(pkg_and_name_rx, "\\2", qual_name)
     if (pkg_name == "")
     pkg_name <- .env
     env <- asNamespace(pkg_name)
     if (!exists(name, envir = env, mode = "function"))
     stop("Function ", name, " not found in environment ", environmentName(env),
     ".", call. = FALSE)
     mock(name = name, env = env, new = eval(new_values[[qual_name]], eval_env, eval_env))
     })
     4: FUN(X[[i]], ...)
     5: stop("Can't mock functions in base packages (", pkg_name, ")", call. = FALSE)
    
     ── 3. Error: canProcessYaml (@test-process_yaml.R#7) ──────────────────────────
     Can't mock functions in base packages (base)
     1: testthat::with_mock(`httr::GET` = function(...) {
     test_llres
     }, `base::dir.create` = function(...) {
     TRUE
     }, `utils::unzip` = function(zipfile, list = FALSE, ...) {
     if (list) {
     list(Name = zipfile)
     }
     else {
     zipfile
     }
     }, procyml <- process_yaml(ymlfile)) at testthat/test-process_yaml.R:7
     2: extract_mocks(new_values = new_values[!code_pos], .env = .env, eval_env = parent.frame())
     3: lapply(stats::setNames(nm = mock_qual_names), function(qual_name) {
     pkg_name <- gsub(pkg_and_name_rx, "\\1", qual_name)
     if (is_base_pkg(pkg_name)) {
     stop("Can't mock functions in base packages (", pkg_name, ")", call. = FALSE)
     }
     name <- gsub(pkg_and_name_rx, "\\2", qual_name)
     if (pkg_name == "")
     pkg_name <- .env
     env <- asNamespace(pkg_name)
     if (!exists(name, envir = env, mode = "function"))
     stop("Function ", name, " not found in environment ", environmentName(env),
     ".", call. = FALSE)
     mock(name = name, env = env, new = eval(new_values[[qual_name]], eval_env, eval_env))
     })
     4: FUN(X[[i]], ...)
     5: stop("Can't mock functions in base packages (", pkg_name, ")", call. = FALSE)
    
     ══ testthat results ═══════════════════════════════════════════════════════════
     OK: 28 SKIPPED: 0 FAILED: 3
     1. Error: canDownloadFiles (@test-download_files.R#9)
     2. Error: canReturnEmptyDFWhenEmptyDownloadFiles (@test-download_files.R#27)
     3. Error: canProcessYaml (@test-process_yaml.R#7)
    
     Error: testthat unit tests failed
     Execution halted
Flavors: r-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc, r-patched-solaris-x86

Version: 0.1.0
Check: tests
Result: ERROR
     Running 'testthat.R' [3s]
    Running the tests in 'tests/testthat.R' failed.
    Complete output:
     > library(testthat)
     > library(binman)
     >
     > test_check("binman")
     -- 1. Error: canDownloadFiles (@test-download_files.R#9) ----------------------
     Can't mock functions in base packages (base)
     1: with_mock(`httr::GET` = function(...) {
     test_llres
     }, `base::dir.create` = function(...) {
     TRUE
     }, dlfiles <- download_files(dllist)) at testthat/test-download_files.R:9
     2: extract_mocks(new_values = new_values[!code_pos], .env = .env, eval_env = parent.frame())
     3: lapply(stats::setNames(nm = mock_qual_names), function(qual_name) {
     pkg_name <- gsub(pkg_and_name_rx, "\\1", qual_name)
     if (is_base_pkg(pkg_name)) {
     stop("Can't mock functions in base packages (", pkg_name, ")", call. = FALSE)
     }
     name <- gsub(pkg_and_name_rx, "\\2", qual_name)
     if (pkg_name == "")
     pkg_name <- .env
     env <- asNamespace(pkg_name)
     if (!exists(name, envir = env, mode = "function"))
     stop("Function ", name, " not found in environment ", environmentName(env),
     ".", call. = FALSE)
     mock(name = name, env = env, new = eval(new_values[[qual_name]], eval_env, eval_env))
     })
     4: FUN(X[[i]], ...)
     5: stop("Can't mock functions in base packages (", pkg_name, ")", call. = FALSE)
    
     -- 2. Error: canReturnEmptyDFWhenEmptyDownloadFiles (@test-download_files.R#27)
     Can't mock functions in base packages (base)
     1: with_mock(`httr::GET` = function(...) {
     test_llres
     }, `base::dir.create` = function(...) {
     TRUE
     }, dlfiles <- download_files(dllist)) at testthat/test-download_files.R:27
     2: extract_mocks(new_values = new_values[!code_pos], .env = .env, eval_env = parent.frame())
     3: lapply(stats::setNames(nm = mock_qual_names), function(qual_name) {
     pkg_name <- gsub(pkg_and_name_rx, "\\1", qual_name)
     if (is_base_pkg(pkg_name)) {
     stop("Can't mock functions in base packages (", pkg_name, ")", call. = FALSE)
     }
     name <- gsub(pkg_and_name_rx, "\\2", qual_name)
     if (pkg_name == "")
     pkg_name <- .env
     env <- asNamespace(pkg_name)
     if (!exists(name, envir = env, mode = "function"))
     stop("Function ", name, " not found in environment ", environmentName(env),
     ".", call. = FALSE)
     mock(name = name, env = env, new = eval(new_values[[qual_name]], eval_env, eval_env))
     })
     4: FUN(X[[i]], ...)
     5: stop("Can't mock functions in base packages (", pkg_name, ")", call. = FALSE)
    
     /usr/bin/tar: Record size = 6 blocks
     /usr/bin/tar: Record size = 6 blocks
     -- 3. Error: canProcessYaml (@test-process_yaml.R#7) --------------------------
     Can't mock functions in base packages (base)
     1: testthat::with_mock(`httr::GET` = function(...) {
     test_llres
     }, `base::dir.create` = function(...) {
     TRUE
     }, `utils::unzip` = function(zipfile, list = FALSE, ...) {
     if (list) {
     list(Name = zipfile)
     }
     else {
     zipfile
     }
     }, procyml <- process_yaml(ymlfile)) at testthat/test-process_yaml.R:7
     2: extract_mocks(new_values = new_values[!code_pos], .env = .env, eval_env = parent.frame())
     3: lapply(stats::setNames(nm = mock_qual_names), function(qual_name) {
     pkg_name <- gsub(pkg_and_name_rx, "\\1", qual_name)
     if (is_base_pkg(pkg_name)) {
     stop("Can't mock functions in base packages (", pkg_name, ")", call. = FALSE)
     }
     name <- gsub(pkg_and_name_rx, "\\2", qual_name)
     if (pkg_name == "")
     pkg_name <- .env
     env <- asNamespace(pkg_name)
     if (!exists(name, envir = env, mode = "function"))
     stop("Function ", name, " not found in environment ", environmentName(env),
     ".", call. = FALSE)
     mock(name = name, env = env, new = eval(new_values[[qual_name]], eval_env, eval_env))
     })
     4: FUN(X[[i]], ...)
     5: stop("Can't mock functions in base packages (", pkg_name, ")", call. = FALSE)
    
     == testthat results ===========================================================
     OK: 26 SKIPPED: 0 FAILED: 3
     1. Error: canDownloadFiles (@test-download_files.R#9)
     2. Error: canReturnEmptyDFWhenEmptyDownloadFiles (@test-download_files.R#27)
     3. Error: canProcessYaml (@test-process_yaml.R#7)
    
     Error: testthat unit tests failed
     Execution halted
Flavors: r-devel-windows-ix86+x86_64, r-release-windows-ix86+x86_64, r-oldrel-windows-ix86+x86_64

Version: 0.1.0
Check: tests
Result: ERROR
     Running ‘testthat.R’ [7s/10s]
    Running the tests in ‘tests/testthat.R’ failed.
    Last 13 lines of output:
     stop("Function ", name, " not found in environment ", environmentName(env),
     ".", call. = FALSE)
     mock(name = name, env = env, new = eval(new_values[[qual_name]], eval_env, eval_env))
     })
     4: FUN(X[[i]], ...)
     5: stop("Can't mock functions in base packages (", pkg_name, ")", call. = FALSE)
    
     ══ testthat results ═══════════════════════════════════════════════════════════
     OK: 28 SKIPPED: 0 FAILED: 3
     1. Error: canDownloadFiles (@test-download_files.R#9)
     2. Error: canReturnEmptyDFWhenEmptyDownloadFiles (@test-download_files.R#27)
     3. Error: canProcessYaml (@test-process_yaml.R#7)
    
     Error: testthat unit tests failed
     Execution halted
Flavor: r-release-osx-x86_64