CRAN Package Check Results for Package drake

Last updated on 2018-10-23 14:47:37 CEST.

Flavor Version Tinstall Tcheck Ttotal Status Flags
r-devel-linux-x86_64-debian-clang 6.0.0 11.32 136.84 148.16 OK
r-devel-linux-x86_64-debian-gcc 6.0.0 10.26 106.11 116.37 OK
r-devel-linux-x86_64-fedora-clang 6.0.0 169.69 OK
r-devel-linux-x86_64-fedora-gcc 6.0.0 165.48 OK
r-devel-windows-ix86+x86_64 6.0.0 20.00 272.00 292.00 OK
r-patched-linux-x86_64 6.0.0 10.29 127.11 137.40 OK
r-patched-solaris-x86 6.0.0 207.30 OK
r-release-linux-x86_64 6.0.0 9.22 127.24 136.46 ERROR
r-release-windows-ix86+x86_64 6.0.0 25.00 281.00 306.00 OK
r-release-osx-x86_64 6.0.0 OK
r-oldrel-windows-ix86+x86_64 6.0.0 14.00 228.00 242.00 OK
r-oldrel-osx-x86_64 6.0.0 OK

Check Details

Version: 6.0.0
Check: package dependencies
Result: NOTE
    Packages suggested but not available for checking: ‘networkD3’ ‘visNetwork’
Flavor: r-release-linux-x86_64

Version: 6.0.0
Check: examples
Result: ERROR
    Running examples in ‘drake-Ex.R’ failed
    The error most likely occurred in:
    
    > base::assign(".ptime", proc.time(), pos = "CheckExEnv")
    > ### Name: evaluate_plan
    > ### Title: Use wildcard templating to create a workflow plan data frame
    > ### from a template data frame.
    > ### Aliases: evaluate_plan
    >
    > ### ** Examples
    >
    > # Create the part of the workflow plan for the datasets.
    > datasets <- drake_plan(
    + small = simulate(5),
    + large = simulate(50))
    > # Create a template workflow plan for the analyses.
    > methods <- drake_plan(
    + regression1 = reg1(dataset__),
    + regression2 = reg2(dataset__))
    > # Evaluate the wildcards in the template
    > # to produce the actual part of the workflow plan
    > # that encodes the analyses of the datasets.
    > # Create one analysis for each combination of dataset and method.
    > evaluate_plan(methods, wildcard = "dataset__",
    + values = datasets$target)
    # A tibble: 4 x 2
     target command
    * <chr> <chr>
    1 regression1_small reg1(small)
    2 regression1_large reg1(large)
    3 regression2_small reg2(small)
    4 regression2_large reg2(large)
    > # Only choose some combinations of dataset and analysis method.
    > ans <- evaluate_plan(methods, wildcard = "dataset__",
    + values = datasets$target, expand = FALSE)
    > ans
    # A tibble: 2 x 2
     target command
    * <chr> <chr>
    1 regression1 reg1(small)
    2 regression2 reg2(large)
    > # For the complete workflow plan, row bind the pieces together.
    > my_plan <- rbind(datasets, ans)
    > my_plan
    # A tibble: 4 x 2
     target command
     <chr> <chr>
    1 small simulate(5)
    2 large simulate(50)
    3 regression1 reg1(small)
    4 regression2 reg2(large)
    > # Workflow plans can have multiple wildcards.
    > # Each combination of wildcard values will be used
    > # Except when expand is FALSE.
    > x <- drake_plan(draws = rnorm(mean = Mean, sd = Sd))
    > evaluate_plan(x, rules = list(Mean = 1:3, Sd = c(1, 10)))
    # A tibble: 6 x 2
     target command
    * <chr> <chr>
    1 draws_1_1 rnorm(mean = 1, sd = 1)
    2 draws_1_10 rnorm(mean = 1, sd = 10)
    3 draws_2_1 rnorm(mean = 2, sd = 1)
    4 draws_2_10 rnorm(mean = 2, sd = 10)
    5 draws_3_1 rnorm(mean = 3, sd = 1)
    6 draws_3_10 rnorm(mean = 3, sd = 10)
    > # You can use wildcards on columns other than "command"
    > evaluate_plan(
    + drake_plan(
    + x = target("always", cpu = "any"),
    + y = target("any", cpu = "always"),
    + z = target("any", cpu = "any"),
    + strings_in_dots = "literals"
    + ),
    + rules = list(always = 1:2),
    + columns = c("command", "cpu")
    + )
    # A tibble: 5 x 3
     target command cpu
    * <chr> <chr> <chr>
    1 x_1 1 any
    2 x_2 2 any
    3 y_1 any 1
    4 y_2 any 2
    5 z any any
    > # With the `trace` argument,
    > # you can generate columns that show how the wildcards
    > # were evaluated.
    > plan <- drake_plan(x = rnorm(n__), y = rexp(n__))
    > plan <- evaluate_plan(plan, wildcard = "n__", values = 1:2, trace = TRUE)
    > print(plan)
    # A tibble: 4 x 4
     target command n__ n___from
    * <chr> <chr> <chr> <chr>
    1 x_1 rnorm(1) 1 x
    2 x_2 rnorm(2) 2 x
    3 y_1 rexp(1) 1 y
    4 y_2 rexp(2) 2 y
    > # With the `trace` argument,
    > # you can generate columns that show how the wildcards
    > # were evaluated. Then you can visualize the wildcard groups
    > # as clusters.
    > plan <- drake_plan(x = rnorm(n__), y = rexp(n__))
    > plan <- evaluate_plan(plan, wildcard = "n__", values = 1:2, trace = TRUE)
    > print(plan)
    # A tibble: 4 x 4
     target command n__ n___from
    * <chr> <chr> <chr> <chr>
    1 x_1 rnorm(1) 1 x
    2 x_2 rnorm(2) 2 x
    3 y_1 rexp(1) 1 y
    4 y_2 rexp(2) 2 y
    > cache <- storr::storr_environment()
    > config <- drake_config(plan, cache = cache)
    > vis_drake_graph(config, group = "n__", clusters = "1")
    Error: package visNetwork not installed. Please install it with install.packages("visNetwork").
    Execution halted
Flavor: r-release-linux-x86_64

Version: 6.0.0
Check: tests
Result: ERROR
     Running ‘testthat.R’ [44s/47s]
    Running the tests in ‘tests/testthat.R’ failed.
    Complete output:
     > Sys.setenv("R_TESTS" = "")
     >
     > library(testthat)
     > library(drake)
    
     Attaching package: 'drake'
    
     The following object is masked from 'package:testthat':
    
     matches
    
     >
     > test_check("drake")
     ── 1. Error: cache functions work (@test-cache.R#409) ─────────────────────────
     there is no package called 'visNetwork'
     1: null_graph() at testthat/test-cache.R:409
     2: visNetwork::visNetwork
     3: getExportedValue(pkg, name)
     4: asNamespace(ns)
     5: getNamespace(ns)
     6: tryCatch(loadNamespace(name), error = function(e) stop(e))
     7: tryCatchList(expr, classes, parentenv, handlers)
     8: tryCatchOne(expr, names, parentenv, handlers[[1L]])
     9: value[[3L]](cond)
    
     ══ testthat results ═══════════════════════════════════════════════════════════
     OK: 315 SKIPPED: 222 FAILED: 1
     1. Error: cache functions work (@test-cache.R#409)
    
     Error: testthat unit tests failed
     Execution halted
Flavor: r-release-linux-x86_64