Skip to content

Instantly share code, notes, and snippets.

@yoni
Created February 23, 2014 18:45
Show Gist options
  • Save yoni/9175418 to your computer and use it in GitHub Desktop.
Save yoni/9175418 to your computer and use it in GitHub Desktop.
rbundler_testthat_0.8_failure
R version 3.0.2 (2013-09-25) -- "Frisbee Sailing"
Copyright (C) 2013 The R Foundation for Statistical Computing
Platform: x86_64-apple-darwin10.8.0 (64-bit)
R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.
R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.
Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.
> library(testthat)
> library(devtools)
>
> test_package("rbundler")
A developer can bundle a package and it's dependencies. : * installing *source* package 'nodependencies' ...
** help
No man pages found in package 'nodependencies'
*** installing help indices
** building package indices
** testing if installed package can be loaded
* DONE (nodependencies)
..1* installing *source* package 'tempdisagg' ...
** package 'tempdisagg' successfully unpacked and MD5 sums checked
** R
** data
** demo
** preparing package for lazy loading
** help
*** installing help indices
** building package indices
** testing if installed package can be loaded
* DONE (tempdisagg)
* installing *source* package 'simpledependencies' ...
** help
No man pages found in package 'simpledependencies'
*** installing help indices
** building package indices
** testing if installed package can be loaded
* DONE (simpledependencies)
...23
rbundler can create a package description dynamically : ...
rbundler can install a specific version of a package : .....................* installing *source* package 'tempdisagg' ...
** package 'tempdisagg' successfully unpacked and MD5 sums checked
** R
** data
** preparing package for lazy loading
** help
*** installing help indices
** building package indices
** testing if installed package can be loaded
* DONE (tempdisagg)
..* installing *source* package 'tempdisagg' ...
** package 'tempdisagg' successfully unpacked and MD5 sums checked
** R
** data
** preparing package for lazy loading
** help
*** installing help indices
** building package indices
** testing if installed package can be loaded
* DONE (tempdisagg)
....* installing *source* package 'tempdisagg' ...
** package 'tempdisagg' successfully unpacked and MD5 sums checked
** R
** data
** preparing package for lazy loading
** help
*** installing help indices
** building package indices
** testing if installed package can be loaded
* DONE (tempdisagg)
......
1. Error: Bundling a package with no dependencies creates a bundle directory with the project installed and no dependencies installed.
length(regexp) == 1 is not TRUE
1: bundle_and_validate(overwrite = FALSE) at test-bundle.r:67
2: expect_match(basename(lib), basename(.libPaths()), all = FALSE, info = sprintf("Did not find [%s] in .libPaths().",
lib)) at test-bundle.r:62
3: expect_that(object, matches(regexp, ...), info = info, label = label)
4: matches(regexp, ...)
5: stopifnot(is.character(regexp), length(regexp) == 1)
6: stop(sprintf(ngettext(length(r), "%s is not TRUE", "%s are not all TRUE"), ch), call. = FALSE,
domain = NA)
2. Error: Bundling a package with dependencies creates a bundle directory with the project installed and all dependencies installed.
length(regexp) == 1 is not TRUE
1: bundle_and_validate(overwrite = FALSE) at test-bundle.r:67
2: expect_match(basename(lib), basename(.libPaths()), all = FALSE, info = sprintf("Did not find [%s] in .libPaths().",
lib)) at test-bundle.r:62
3: expect_that(object, matches(regexp, ...), info = info, label = label)
4: matches(regexp, ...)
5: stopifnot(is.character(regexp), length(regexp) == 1)
6: stop(sprintf(ngettext(length(r), "%s is not TRUE", "%s are not all TRUE"), ch), call. = FALSE,
domain = NA)
3. Error: Bundling a package with versioned dependencies creates a bundle directory with the project installed, all dependencies installed, and correct dependency versions.
Installed package [tempdisagg] is of the wrong version. Required: [0.13]. Actual: [0.23]
1: bundle_and_validate(overwrite = FALSE) at test-bundle.r:67
2: bundle(pkg = package$path, bundle_path = lib, overwrite = overwrite) at test-bundle.r:21
3: apply(depends, 1, FUN = function(d) {
install_version(d["name"], d["version"], d["compare"], dependencies = dependencies)
})
4: FUN(newX[, i], ...)
5: install_version(d["name"], d["version"], d["compare"], dependencies = dependencies)
6: validate_installed_package(package, version, compare)
7: stop(sprintf("Installed package [%s] is of the wrong version. Required: [%s]. Actual: [%s]",
package, version, installed_package$Version))
Error: Test failures
Execution halted
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment