Last active
August 29, 2015 13:56
-
-
Save yoni/9176797 to your computer and use it in GitHub Desktop.
Rbundler builds using test(fresh=TRUE) but errors out with test() and check(). See lines 1, 131 and 292 for each of the calls.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
> test() # Running test within the R session causes some crazy initialization error. Search for: "Error: 2:1: unexpected input" | |
Testing rbundler | |
Loading required package: testthat | |
Loading 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) | |
...* 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) | |
...* 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) | |
...trying URL 'http://cran.rstudio.com/src/contrib/tempdisagg_0.23.tar.gz' | |
Content type 'application/x-gzip' length 29540 bytes (28 Kb) | |
opened URL | |
================================================== | |
downloaded 28 Kb | |
Error: 2:1: unexpected input | |
1: .First <- function() { | |
2: ? | |
^ | |
Execution halted | |
The downloaded source packages are in | |
‘/private/var/folders/6w/l7mkwttn4934cn30c27vk4g8jm01gc/T/RtmpSU2vtd/downloaded_packages’ | |
trying URL 'http://cran.rstudio.com/src/contrib/tempdisagg_0.23.tar.gz' | |
Content type 'application/x-gzip' length 29540 bytes (28 Kb) | |
opened URL | |
================================================== | |
downloaded 28 Kb | |
Error: 2:1: unexpected input | |
1: .First <- function() { | |
2: ? | |
^ | |
Execution halted | |
The downloaded source packages are in | |
‘/private/var/folders/6w/l7mkwttn4934cn30c27vk4g8jm01gc/T/RtmpSU2vtd/downloaded_packages’ | |
ERROR: dependency 'tempdisagg' is not available for package 'simpledependencies' | |
* removing '/private/var/folders/6w/l7mkwttn4934cn30c27vk4g8jm01gc/T/RtmpSU2vtd/bundle-test-1393186959.45888/simpledependencies/.Rbundle/simpledependencies' | |
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 'versioneddependencies' ... | |
** help | |
No man pages found in package 'versioneddependencies' | |
*** installing help indices | |
** building package indices | |
** testing if installed package can be loaded | |
* DONE (versioneddependencies) | |
.....* 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 'versioneddependencies' ... | |
** help | |
No man pages found in package 'versioneddependencies' | |
*** installing help indices | |
** building package indices | |
** testing if installed package can be loaded | |
* DONE (versioneddependencies) | |
.....* 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 'versioneddependencies' ... | |
** help | |
No man pages found in package 'versioneddependencies' | |
*** installing help indices | |
** building package indices | |
** testing if installed package can be loaded | |
* DONE (versioneddependencies) | |
..... | |
rbundler can create a package description dynamically : ... | |
1. Error: Bundling a package with dependencies creates a bundle directory with the project installed and all dependencies installed. | |
Command failed (1) | |
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: install(pkg) at /Users/yoni.ben-meshulam/opower/workspace/rbundler/R/bundle.r:73 | |
4: R(paste("CMD INSTALL ", shQuote(built_path), " ", opts, sep = ""), quiet = quiet) | |
5: in_dir(path, system_check(r_path, options, c(r_env_vars(), env_vars), ...)) | |
6: force(code) | |
7: system_check(r_path, options, c(r_env_vars(), env_vars), ...) | |
8: stop("Command failed (", status, ")", call. = FALSE) | |
Warning messages: | |
1: In install.packages(package, repos = repos, contriburl = contriburl, : | |
installation of package ‘tempdisagg’ had non-zero exit status | |
2: In install.packages(deps, dependencies = dependencies) : | |
installation of package ‘tempdisagg’ had non-zero exit status | |
> test(fresh=TRUE) #running test with fresh=TRUE fixes the issue | |
Testing 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) | |
...* 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) | |
...* 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) | |
...trying URL 'http://cran.rstudio.com/src/contrib/tempdisagg_0.23.tar.gz' | |
Content type 'application/x-gzip' length 29540 bytes (28 Kb) | |
opened URL | |
================================================== | |
downloaded 28 Kb | |
* 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) | |
The downloaded source packages are in | |
'/private/var/folders/6w/l7mkwttn4934cn30c27vk4g8jm01gc/T/RtmpzoY1l0/downloaded_packages' | |
* 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) | |
....trying URL 'http://cran.rstudio.com/src/contrib/tempdisagg_0.23.tar.gz' | |
Content type 'application/x-gzip' length 29540 bytes (28 Kb) | |
opened URL | |
================================================== | |
downloaded 28 Kb | |
* 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) | |
The downloaded source packages are in | |
'/private/var/folders/6w/l7mkwttn4934cn30c27vk4g8jm01gc/T/RtmpzoY1l0/downloaded_packages' | |
* 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) | |
....trying URL 'http://cran.rstudio.com/src/contrib/tempdisagg_0.23.tar.gz' | |
Content type 'application/x-gzip' length 29540 bytes (28 Kb) | |
opened URL | |
================================================== | |
downloaded 28 Kb | |
* 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) | |
The downloaded source packages are in | |
'/private/var/folders/6w/l7mkwttn4934cn30c27vk4g8jm01gc/T/RtmpzoY1l0/downloaded_packages' | |
* 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) | |
....* 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 'versioneddependencies' ... | |
** help | |
No man pages found in package 'versioneddependencies' | |
*** installing help indices | |
** building package indices | |
** testing if installed package can be loaded | |
* DONE (versioneddependencies) | |
.....* 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 'versioneddependencies' ... | |
** help | |
No man pages found in package 'versioneddependencies' | |
*** installing help indices | |
** building package indices | |
** testing if installed package can be loaded | |
* DONE (versioneddependencies) | |
.....* 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 'versioneddependencies' ... | |
** help | |
No man pages found in package 'versioneddependencies' | |
*** installing help indices | |
** building package indices | |
** testing if installed package can be loaded | |
* DONE (versioneddependencies) | |
..... | |
rbundler can create a package description dynamically : ... | |
> check() # Running devtools:::check() causes the same issues that running test() did: | |
Updating rbundler documentation | |
Loading rbundler | |
pdflatex not found. Not building PDF vignettes. | |
'/Library/Frameworks/R.framework/Resources/bin/R' --vanilla CMD build \ | |
'/Users/yoni.ben-meshulam/opower/workspace/rbundler' --no-manual \ | |
--no-resave-data --no-vignettes | |
Warning: '--no-vignettes' is deprecated: | |
use '--no-build-vignettes' instead | |
* checking for file '/Users/yoni.ben-meshulam/opower/workspace/rbundler/DESCRIPTION' ... OK | |
* preparing 'rbundler': | |
* checking DESCRIPTION meta-information ... OK | |
* checking for LF line-endings in source and make files | |
* checking for empty or unneeded directories | |
* building 'rbundler_0.4.0.tar.gz' | |
Warning: invalid uid value replaced by that for user 'nobody' | |
Warning: invalid uid value replaced by that for user 'nobody' | |
Warning: invalid uid value replaced by that for user 'nobody' | |
Warning: invalid uid value replaced by that for user 'nobody' | |
Warning: invalid uid value replaced by that for user 'nobody' | |
Warning: invalid uid value replaced by that for user 'nobody' | |
Warning: invalid uid value replaced by that for user 'nobody' | |
Warning: invalid uid value replaced by that for user 'nobody' | |
Warning: invalid uid value replaced by that for user 'nobody' | |
Warning: invalid uid value replaced by that for user 'nobody' | |
Warning: invalid uid value replaced by that for user 'nobody' | |
Warning: invalid uid value replaced by that for user 'nobody' | |
Warning: invalid uid value replaced by that for user 'nobody' | |
Warning: invalid uid value replaced by that for user 'nobody' | |
Warning: invalid uid value replaced by that for user 'nobody' | |
Warning: invalid uid value replaced by that for user 'nobody' | |
Warning: invalid uid value replaced by that for user 'nobody' | |
Warning: invalid uid value replaced by that for user 'nobody' | |
Warning: invalid uid value replaced by that for user 'nobody' | |
Warning: invalid uid value replaced by that for user 'nobody' | |
Warning: invalid uid value replaced by that for user 'nobody' | |
Warning: invalid uid value replaced by that for user 'nobody' | |
Warning: invalid uid value replaced by that for user 'nobody' | |
Warning: invalid uid value replaced by that for user 'nobody' | |
Warning: invalid uid value replaced by that for user 'nobody' | |
Warning: invalid uid value replaced by that for user 'nobody' | |
Warning: invalid uid value replaced by that for user 'nobody' | |
pdflatex not found! Not building PDF manual or vignettes. | |
If you are planning to release this package, please run a check with manual and vignettes beforehand. | |
'/Library/Frameworks/R.framework/Resources/bin/R' --vanilla CMD check \ | |
'/var/folders/6w/l7mkwttn4934cn30c27vk4g8jm01gc/T//RtmpSU2vtd/rbundler_0.4.0.tar.gz' \ | |
--timings --no-rebuild-vignettes --no-manual | |
Warning: '--no-rebuild-vignettes' is deprecated: | |
use '--no-build-vignettes' instead | |
* using log directory '/private/var/folders/6w/l7mkwttn4934cn30c27vk4g8jm01gc/T/RtmpSU2vtd/rbundler.Rcheck' | |
* using R version 3.0.2 (2013-09-25) | |
* using platform: x86_64-apple-darwin10.8.0 (64-bit) | |
* using session charset: ASCII | |
* using option '--no-build-vignettes' | |
* checking for file 'rbundler/DESCRIPTION' ... OK | |
* this is package 'rbundler' version '0.4.0' | |
* 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 executable files ... OK | |
* checking for hidden files and directories ... OK | |
* checking for portable file names ... OK | |
* checking for sufficient/correct file permissions ... OK | |
* checking whether package 'rbundler' 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 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 ... OK | |
* checking for unstated dependencies in tests ... OK | |
* checking tests ... | |
Running 'test-all.R' | |
ERROR | |
Running the tests in 'tests/test-all.R' failed. | |
Last 13 lines of output: | |
4: R(paste("CMD INSTALL ", shQuote(built_path), " ", opts, sep = ""), quiet = quiet) | |
5: in_dir(path, system_check(r_path, options, c(r_env_vars(), env_vars), ...)) | |
6: force(code) | |
7: system_check(r_path, options, c(r_env_vars(), env_vars), ...) | |
8: stop("Command failed (", status, ")", call. = FALSE) | |
Error: Test failures | |
In addition: Warning messages: | |
1: In install.packages(package, repos = repos, contriburl = contriburl, : | |
installation of package 'tempdisagg' had non-zero exit status | |
2: In install.packages(deps, dependencies = dependencies) : | |
installation of package 'tempdisagg' had non-zero exit status | |
Execution halted | |
Error: Command failed (1) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment