Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
barracuda156 opened this issue May 3, 2024 · 1 comment

Comments

@barracuda156
Copy link

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
Copy link
Owner

mhahsler commented May 3, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants