c-rutter / crcrdm

Robust Decision Making Tools for Cancer Screening Models
https://c-rutter.github.io/crcrdm/
GNU General Public License v2.0
3 stars 0 forks source link

test error: file.exists("./json-test/screening_design.txt") is not TRUE #33

Closed pedroliman closed 2 years ago

pedroliman commented 2 years ago
> library(testthat)
[167](https://github.com/c-rutter/crcspin/runs/6866481073?check_suite_focus=true#step:5:169)
> library(crcrdm)
[168](https://github.com/c-rutter/crcspin/runs/6866481073?check_suite_focus=true#step:5:170)
> 
[169](https://github.com/c-rutter/crcspin/runs/6866481073?check_suite_focus=true#step:5:171)
> test_check("crcrdm")
[170](https://github.com/c-rutter/crcspin/runs/6866481073?check_suite_focus=true#step:5:172)
Writing Natural History Experimental Design JSON File with 3 json rows.
[171](https://github.com/c-rutter/crcspin/runs/6866481073?check_suite_focus=true#step:5:173)
Writing Screening Experimental Design JSON File with 12 json rows.
[172](https://github.com/c-rutter/crcspin/runs/6866481073?check_suite_focus=true#step:5:174)
[ FAIL 1 | WARN 2 | SKIP 0 | PASS 22 ]
[173](https://github.com/c-rutter/crcspin/runs/6866481073?check_suite_focus=true#step:5:175)
[174](https://github.com/c-rutter/crcspin/runs/6866481073?check_suite_focus=true#step:5:176)
══ Warnings ════════════════════════════════════════════════════════════════════
[175](https://github.com/c-rutter/crcspin/runs/6866481073?check_suite_focus=true#step:5:177)
── Warning (test-crcrdm.R:221:3): to_JSON can write to a file ──────────────────
[176](https://github.com/c-rutter/crcspin/runs/6866481073?check_suite_focus=true#step:5:178)
cannot remove file './json-test/screening_design.txt', reason 'No such file or directory'
[177](https://github.com/c-rutter/crcspin/runs/6866481073?check_suite_focus=true#step:5:179)
Backtrace:
[178](https://github.com/c-rutter/crcspin/runs/6866481073?check_suite_focus=true#step:5:180)
 1. base::file.remove("./json-test/screening_design.txt")
[179](https://github.com/c-rutter/crcspin/runs/6866481073?check_suite_focus=true#step:5:181)
      at test-crcrdm.R:221:2
[180](https://github.com/c-rutter/crcspin/runs/6866481073?check_suite_focus=true#step:5:182)
── Warning (test-crcrdm.R:223:3): to_JSON can write to a file ──────────────────
[181](https://github.com/c-rutter/crcspin/runs/6866481073?check_suite_focus=true#step:5:183)
cannot remove file './json-test/', reason 'Directory not empty'
[182](https://github.com/c-rutter/crcspin/runs/6866481073?check_suite_focus=true#step:5:184)
Backtrace:
[183](https://github.com/c-rutter/crcspin/runs/6866481073?check_suite_focus=true#step:5:185)
 1. base::file.remove("./json-test/")
[184](https://github.com/c-rutter/crcspin/runs/6866481073?check_suite_focus=true#step:5:186)
      at test-crcrdm.R:223:2
[185](https://github.com/c-rutter/crcspin/runs/6866481073?check_suite_focus=true#step:5:187)
[186](https://github.com/c-rutter/crcspin/runs/6866481073?check_suite_focus=true#step:5:188)
══ Failed tests ════════════════════════════════════════════════════════════════
[187](https://github.com/c-rutter/crcspin/runs/6866481073?check_suite_focus=true#step:5:189)
── Failure (test-crcrdm.R:218:3): to_JSON can write to a file ──────────────────
[188](https://github.com/c-rutter/crcspin/runs/6866481073?check_suite_focus=true#step:5:190)
file.exists("./json-test/screening_design.txt") is not TRUE
[189](https://github.com/c-rutter/crcspin/runs/6866481073?check_suite_focus=true#step:5:191)
[190](https://github.com/c-rutter/crcspin/runs/6866481073?check_suite_focus=true#step:5:192)
`actual`:   FALSE
[191](https://github.com/c-rutter/crcspin/runs/6866481073?check_suite_focus=true#step:5:193)
`expected`: TRUE 
[192](https://github.com/c-rutter/crcspin/runs/6866481073?check_suite_focus=true#step:5:194)
[193](https://github.com/c-rutter/crcspin/runs/6866481073?check_suite_focus=true#step:5:195)
[ FAIL 1 | WARN 2 | SKIP 0 | PASS 22 ]