- using R Under development (unstable) (2023-02-03 r83757 ucrt)
- using platform: x86_64-w64-mingw32 (64-bit)
- R was compiled by
gcc.exe (GCC) 12.2.0
GNU Fortran (GCC) 12.2.0
- running under: Windows Server 2022 x64 (build 20348)
- using session charset: UTF-8
- checking for file 'DominoDataCapture/DESCRIPTION' ... OK
- checking extension type ... Package
- this is package 'DominoDataCapture' version '0.1.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 'DominoDataCapture' 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 ... NOTE
Problems with news in 'NEWS.md':
No news entries found.
- checking R files for non-ASCII characters ... OK
- checking R files for syntax errors ... OK
- checking whether the package can be loaded ... [1s] OK
- checking whether the package can be loaded with stated dependencies ... [0s] OK
- checking whether the package can be unloaded cleanly ... [0s] OK
- checking whether the namespace can be loaded with stated dependencies ... [0s] OK
- checking whether the namespace can be unloaded cleanly ... [1s] OK
- checking loading without being on the library search path ... [1s] 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 ... [0s] 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 ... [1s] OK
- checking for unstated dependencies in 'tests' ... OK
- checking tests ... [3s] ERROR
Running 'testthat.R' [2s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
> library(testthat)
>
> test_check("DominoDataCapture")
Loading required package: DominoDataCapture
The information shown below represents the structure and format of the prediction data recorded by Domino when this model is deployed as a Domino Model API {"features":{"min":1,"max":100},"predictions":{"prediction":20},"metadata":{"meta1":"metadata_value1"},"timestamp":"adfasdfasd","__domino_timestamp":"2023-02-04T09:02:54+0000 UTC","event_id":"test_event_id","instance_id":"test_instance_id","prediction_probability":[0.1,0.9],"sample_weight":0.3}
[1] "ERROR DominoDataCapture::capturePrediction Error: Cannot create file: directory '/tmp' does not exist.\n"
[1] "ERROR DominoDataCapture::capturePrediction Error: Cannot create file: directory '/tmp' does not exist.\n"
[1] "ERROR DominoDataCapture::capturePrediction Error: Cannot create file: directory '/random_folder' does not exist.\n"
[1] "ERROR DominoDataCapture::capturePrediction Error: Cannot create file: directory '/tmp' does not exist.\n"
[1] "ERROR DominoDataCapture::capturePrediction Error: Cannot create file: directory '/tmp' does not exist.\n"
[1] "ERROR DominoDataCapture::capturePrediction Error: Cannot create file: directory '/tmp' does not exist.\n"
[1] "ERROR DominoDataCapture::capturePrediction Error: Cannot create file: directory '/tmp' does not exist.\n"
[1] "ERROR DominoDataCapture::capturePrediction Error: Cannot create file: directory '/tmp' does not exist.\n"
[1] "ERROR DominoDataCapture::capturePrediction Error: Cannot create file: directory '/tmp' does not exist.\n"
[1] "ERROR DominoDataCapture::capturePrediction feature_names and feature_values should be of same length"
[1] "ERROR DominoDataCapture::capturePrediction feature_names and feature_values should be of same length"
[1] "ERROR DominoDataCapture::capturePrediction predict_names and predict_values should be of same length"
[1] "ERROR DominoDataCapture::capturePrediction predict_names and predict_values should be of same length"
[1] "ERROR DominoDataCapture::capturePrediction metadata_names and metadata_values should be of same length"
[1] "ERROR DominoDataCapture::capturePrediction predict_names and predict_values should be of same length"
[ FAIL 1 | WARN 7 | SKIP 0 | PASS 34 ]
══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('test_data_capture_client.R:66'): check whether the data is written to the file ──
Error in `file(con, "r")`: cannot open the connection
Backtrace:
▆
1. └─rjson::fromJSON(file = tmp_file) at test_data_capture_client.R:66:2
2. ├─base::paste(readLines(file, warn = FALSE), collapse = "")
3. └─base::readLines(file, warn = FALSE)
4. └─base::file(con, "r")
[ FAIL 1 | WARN 7 | SKIP 0 | PASS 34 ]
Error: Test failures
Execution halted
- checking PDF version of manual ... [30s] OK
- checking HTML version of manual ... [0s] OK
- DONE
Status: 1 ERROR, 1 NOTE