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

tests in 'tests/testthat.R' failed #323

Closed
nunotexbsd opened this issue Jul 6, 2023 · 2 comments
Closed

tests in 'tests/testthat.R' failed #323

nunotexbsd opened this issue Jul 6, 2023 · 2 comments

Comments

@nunotexbsd
Copy link

make test fails on 0.4.4 (same on 0.4.3):

FreeBSD 13.2 amd64
R 4.3.1
R-cran-decor 1.0.2
R-cran-mockery 0.4.3
R-cran-testthat 3.1.9

Full log: https://people.freebsd.org/~eduardo/logs/R-cran-cpp11/00check.log

* checking tests ... ERROR
  Running 'testthat.R'
Running the tests in 'tests/testthat.R' failed.
Last 13 lines of output:
  Class:   simpleError/error/condition
  Backtrace:
      x
   1. +-cpp11:::expect_error_free(cpp11::cpp_source(clean = TRUE, code = "#include <cpp11/R.hpp>\n              #include <RProgress.h>\n\n              [[cpp11::linking_to(\"progress\")]]\n\n              [[cpp11::register]] void show_progress() {\n                RProgress::RProgress pb(\"Processing [:bar] ETA: :eta\");\n\n                pb.tick(0);\n                for (int i = 0; i < 100; i++) {\n                  usleep(2.0 / 100 * 1000000);\n                  pb.tick();\n                }\n              }\n              ")) at test-source.R:132:2
   2. | \-testthat::expect_error(..., regexp = regexp) at tests/testthat/helper.R:33:2
   3. |   \-testthat:::expect_condition_matching(...)
   4. |     \-testthat:::quasi_capture(...)
   5. |       +-testthat (local) .capture(...)
   6. |       | \-base::withCallingHandlers(...)
   7. |       \-rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   8. \-cpp11::cpp_source(clean = TRUE, code = "#include <cpp11/R.hpp>\n              #include <RProgress.h>\n\n              [[cpp11::linking_to(\"progress\")]]\n\n              [[cpp11::register]] void show_progress() {\n                RProgress::RProgress pb(\"Processing [:bar] ETA: :eta\");\n\n                pb.tick(0);\n                for (int i = 0; i < 100; i++) {\n                  usleep(2.0 / 100 * 1000000);\n                  pb.tick();\n                }\n              }\n              ")

  [ FAIL 1 | WARN 0 | SKIP 4 | PASS 106 ]
  Error: Test failures

Any hints?

@pekkarr
Copy link

pekkarr commented Jul 20, 2023

The R package progress is required for that test

@nunotexbsd
Copy link
Author

Fixed!
Now I see #include <RProgress.h> in error log... Next time I will take more attention on this kind of details.

Thanks

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