mhahsler / pomdp

R package for Partially Observable Markov Decision Processes
15 stars 5 forks source link

One test fails: `Error in `file(open = "w+b")`: cannot open the connection` (perhaps a bug in `processx` though) #17

Open barracuda156 opened 3 months ago

barracuda156 commented 3 months ago

Just for the info, though perhaps it is a an external bug:

R version 4.4.0 (2024-04-24) -- "Puppy Cup"
Copyright (C) 2024 The R Foundation for Statistical Computing
Platform: powerpc-apple-darwin10.0.0d2 (32-bit)

> library("testthat")
> library("pomdp")
> 
> test_check("pomdp")
[ FAIL 1 | WARN 1 | SKIP 0 | PASS 116 ]

══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('test-cpp.R:92:1'): (code run outside of `test_that()`) ──────────────
Error in `file(open = "w+b")`: cannot open the connection
Backtrace:
    ▆
 1. └─pomdp::solve_POMDP(Tiger, horizon = 5, discount = 1, method = "enum") at test-cpp.R:92:1
 2.   └─processx::run(...)
 3.     └─processx:::make_buffer()
 4.       └─base::file(open = "w+b")

[ FAIL 1 | WARN 1 | SKIP 0 | PASS 116 ]
Error: Test failures
Execution halted
mhahsler commented 3 months ago

I don't have access to a Mac. It seems to work on different MacOS flavors on CRAN: https://cran.r-project.org/web/checks/check_results_pomdp.html

Maybe you have an older version of MacOS? Let me know if you find out what is going on.

-Michael