* using log directory 'd:/Rcompile/CRANpkg/local/3.6/scriptexec.Rcheck' * using R version 3.6.3 (2020-02-29) * 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 ... [3s] 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 ... [7s] ERROR Running 'testthat.R' [7s] Running the tests in 'tests/testthat.R' failed. Complete output: > library(testthat) > library(scriptexec) > > test_check("scriptexec") == Skipped tests =============================================================== * On CRAN (1) == Failed tests ================================================================ -- Failure (test_api_stability.R:23:13): public api: error exit code ----------- `output <- scriptexec::execute("exit 1")` did not produce any warnings. -- Failure (test_api_stability.R:24:13): public api: error exit code ----------- output$status not equal to 1. 1/1 mismatches [1] 0 - 1 == -1 -- Failure (test_api_stability.R:34:13): public api: args as parameter 2 as text -- `found` is not TRUE `actual`: FALSE `expected`: TRUE -- Failure (test_api_stability.R:44:13): public api: args as parameter 2 as vector -- `found` is not TRUE `actual`: FALSE `expected`: TRUE -- Failure (test_api_stability.R:54:13): public api: args as named parameter --- `found` is not TRUE `actual`: FALSE `expected`: TRUE -- Failure (test_api_stability.R:64:13): public api: env vars as paramter 3 as text -- `found` not equal to TRUE. 1 element mismatch -- Failure (test_api_stability.R:74:13): public api: env vars as paramter 3 as vector -- `found` not equal to TRUE. 1 element mismatch -- Failure (test_api_stability.R:84:13): public api: env vars as named paramter -- `found` not equal to TRUE. 1 element mismatch -- Failure (test_api_stability.R:150:13): public api: all paramters ------------ `found` not equal to TRUE. 1 element mismatch -- Failure (test_api_stability.R:173:13): public api: all named paramters ------ `found` not equal to TRUE. 1 element mismatch -- Failure (test_examples.R:8:9): Examples: all examples ----------------------- grepl("command1", output$output) not equal to TRUE. 1 element mismatch -- Failure (test_examples.R:9:9): Examples: all examples ----------------------- grepl("command2", output$output) not equal to TRUE. 1 element mismatch -- Failure (test_examples.R:32:9): Examples: all examples ---------------------- grepl("TEST1 TEST2 TEST3", output$output) not equal to TRUE. 1 element mismatch -- Failure (test_examples.R:35:9): Examples: all examples ---------------------- `output <- scriptexec::execute("exit 1")` did not produce any warnings. -- Failure (test_examples.R:36:9): Examples: all examples ---------------------- output$status not equal to 1. 1/1 mismatches [1] 0 - 1 == -1 -- Failure (test_execute.R:34:9): execute: cli arguments ----------------------- `found` is not TRUE `actual`: FALSE `expected`: TRUE -- Failure (test_execute.R:44:9): execute: env vars ---------------------------- `found` is not TRUE `actual`: FALSE `expected`: TRUE -- Failure (test_execute.R:48:9): execute: error exit code --------------------- `output <- scriptexec::execute("exit 1")` did not produce any warnings. -- Failure (test_execute.R:49:9): execute: error exit code --------------------- output$status not equal to 1. 1/1 mismatches [1] 0 - 1 == -1 -- Failure (test_execute.R:75:9): execute: error during invocation ------------- output$status not equal to 1. 1/1 mismatches [1] 0 - 1 == -1 [ FAIL 20 | WARN 0 | SKIP 1 | PASS 102 ] Error: Test failures 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(s) in re-building vignettes: --- re-building 'scriptexec.Rmd' using rmarkdown 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 --- failed re-building 'scriptexec.Rmd' SUMMARY: processing the following file failed: 'scriptexec.Rmd' Error: Vignette re-building failed. Execution halted * checking PDF version of manual ... OK * DONE Status: 2 ERRORs, 1 WARNING