* using log directory 'd:/Rcompile/CRANpkg/local/3.5/scriptexec.Rcheck' * using R version 3.5.3 (2019-03-11) * using platform: x86_64-w64-mingw32 (64-bit) * using session charset: ISO8859-1 * checking for file 'scriptexec/DESCRIPTION' ... OK * this is package 'scriptexec' version '0.3.1' * package encoding: UTF-8 * 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 'scriptexec' can be installed ... OK * checking installed package size ... OK * checking package directory ... OK * checking 'build' 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 ... [4s] 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 installed files from 'inst/doc' ... OK * checking files in 'vignettes' ... OK * checking examples ... ERROR Running examples in 'scriptexec-Ex.R' failed The error most likely occurred in: > ### Name: execute > ### Title: Executes a script and returns the output. The stdout and stderr > ### are captured and returned. In case of errors, the exit code will > ### return in the status field. > ### Aliases: execute > > ### ** Examples > > library('scriptexec') > library('testthat') > > # execute script text > output <- scriptexec::execute('echo command1\necho command2') > expect_equal(output$status, 0) > expect_equal(grepl('command1', output$output), TRUE) Error: grepl("command1", output$output) not equal to TRUE. 1 element mismatch Execution halted * checking for unstated dependencies in 'tests' ... OK * checking tests ... [8s] ERROR Running 'testthat.R' [7s] Running the tests in 'tests/testthat.R' failed. Complete output: > library(testthat) > library(scriptexec) > > test_check("scriptexec") -- 1. Failure: public api: error exit code (@test_api_stability.R#23) --------- `output <- scriptexec::execute("exit 1")` did not produce any warnings. -- 2. Failure: public api: error exit code (@test_api_stability.R#24) --------- output$status not equal to 1. 1/1 mismatches [1] 0 - 1 == -1 -- 3. Failure: public api: args as parameter 2 as text (@test_api_stability.R#34 `found` isn't true. -- 4. Failure: public api: args as parameter 2 as vector (@test_api_stability.R# `found` isn't true. -- 5. Failure: public api: args as named parameter (@test_api_stability.R#54) - `found` isn't true. -- 6. Failure: public api: env vars as paramter 3 as text (@test_api_stability.R `found` not equal to TRUE. 1 element mismatch -- 7. Failure: public api: env vars as paramter 3 as vector (@test_api_stability `found` not equal to TRUE. 1 element mismatch -- 8. Failure: public api: env vars as named paramter (@test_api_stability.R#84) `found` not equal to TRUE. 1 element mismatch -- 9. Failure: public api: all paramters (@test_api_stability.R#150) ---------- `found` not equal to TRUE. 1 element mismatch -- 10. Failure: public api: all named paramters (@test_api_stability.R#173) --- `found` not equal to TRUE. 1 element mismatch -- 11. Failure: Examples: all examples (@test_examples.R#8) ------------------- grepl("command1", output$output) not equal to TRUE. 1 element mismatch -- 12. Failure: Examples: all examples (@test_examples.R#9) ------------------- grepl("command2", output$output) not equal to TRUE. 1 element mismatch -- 13. Failure: Examples: all examples (@test_examples.R#32) ------------------ grepl("TEST1 TEST2 TEST3", output$output) not equal to TRUE. 1 element mismatch -- 14. Failure: Examples: all examples (@test_examples.R#35) ------------------ `output <- scriptexec::execute("exit 1")` did not produce any warnings. -- 15. Failure: Examples: all examples (@test_examples.R#36) ------------------ output$status not equal to 1. 1/1 mismatches [1] 0 - 1 == -1 -- 16. Failure: execute: cli arguments (@test_execute.R#34) ------------------- `found` isn't true. -- 17. Failure: execute: env vars (@test_execute.R#44) ------------------------ `found` isn't true. -- 18. Failure: execute: error exit code (@test_execute.R#48) ----------------- `output <- scriptexec::execute("exit 1")` did not produce any warnings. -- 19. Failure: execute: error exit code (@test_execute.R#49) ----------------- output$status not equal to 1. 1/1 mismatches [1] 0 - 1 == -1 -- 20. Failure: execute: error during invocation (@test_execute.R#75) --------- output$status not equal to 1. 1/1 mismatches [1] 0 - 1 == -1 == testthat results =========================================================== [ OK: 102 | SKIPPED: 1 | WARNINGS: 0 | FAILED: 20 ] 1. Failure: public api: error exit code (@test_api_stability.R#23) 2. Failure: public api: error exit code (@test_api_stability.R#24) 3. Failure: public api: args as parameter 2 as text (@test_api_stability.R#34) 4. Failure: public api: args as parameter 2 as vector (@test_api_stability.R#44) 5. Failure: public api: args as named parameter (@test_api_stability.R#54) 6. Failure: public api: env vars as paramter 3 as text (@test_api_stability.R#64) 7. Failure: public api: env vars as paramter 3 as vector (@test_api_stability.R#74) 8. Failure: public api: env vars as named paramter (@test_api_stability.R#84) 9. Failure: public api: all paramters (@test_api_stability.R#150) 1. ... Error: testthat unit tests failed Execution halted * checking for unstated dependencies in vignettes ... OK * checking package vignettes in 'inst/doc' ... OK * checking re-building of vignette outputs ... [2s] WARNING Error in re-building vignettes: ... Quitting from lines 24-62 (scriptexec.Rmd) Error: processing vignette 'scriptexec.Rmd' failed with diagnostics: grepl("command1", output$output) not equal to TRUE. 1 element mismatch Execution halted * checking PDF version of manual ... OK * DONE Status: 2 ERRORs, 1 WARNING