Skip to content

Prepare CRAN release v0.0.5#49

Merged
dfalbel merged 30 commits intomainfrom
brave-warlock
Apr 27, 2026
Merged

Prepare CRAN release v0.0.5#49
dfalbel merged 30 commits intomainfrom
brave-warlock

Conversation

@dfalbel
Copy link
Copy Markdown
Member

@dfalbel dfalbel commented Apr 22, 2026

Summary

  • Change maintainer to Tomasz Kalinowski (matching torch package)
  • Bump version to 0.0.5
  • Fix summary_audio example to skip when wav is not installed (@examplesIf)
  • Add skip_if_not_installed("wav") to 3 tests that require it
  • Register internal as_tensor_proto S3 methods to fix roxygen2 7.3.3 warnings
  • Add .claude to .Rbuildignore
  • Update RoxygenNote to 7.3.3

Test plan

  • devtools::check() passes with 0 errors and 0 test failures
  • Verify CRAN submission with devtools::submit_cran()

@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 22, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 94.22%. Comparing base (47676c0) to head (fedc7a4).

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #49      +/-   ##
==========================================
+ Coverage   94.10%   94.22%   +0.12%     
==========================================
  Files          23       23              
  Lines        1341     1265      -76     
==========================================
- Hits         1262     1192      -70     
+ Misses         79       73       -6     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

dfalbel added 2 commits April 22, 2026 13:41
- Change maintainer to Tomasz Kalinowski (matching torch)
- Bump version to 0.0.5
- Condition summary_audio example on wav availability
- Add skip_if_not_installed("wav") to audio/read tests
- Register internal as_tensor_proto S3 methods (roxygen2 7.3.3)
- Add .claude to .Rbuildignore
Rely on reticulate's automatic Python dependency management
via the tensorflow R package instead of manually installing.
dfalbel added 26 commits April 22, 2026 13:42
Add py_require("tbparse") in test helper so reticulate handles
installation automatically. Remove manual py_install steps from
check and test-coverage workflows.
Resolve tensorboard binary from reticulate's Python bin directory
instead of relying on PATH or tensorflow::tensorboard() which
fails with newer tensorboard versions.
Provides a working tensorboard launcher that finds the binary from
reticulate's Python environment. Replaces tensorflow::tensorboard()
calls in articles which broke with newer tensorboard versions.
TF 2.21+ no longer installs the tensorboard CLI binary, so pin
to <=2.18 where the binary is still available.
Revert the custom tensorboard() function. Instead, pin
tensorflow<=2.18 and add setuptools to py_require so that
tensorflow::tensorboard() works (newer TF drops the CLI binary,
and tensorboard needs pkg_resources from setuptools).
Revert articles to use tensorflow::tensorboard() as-is. Restore
py_install step in pkgdown workflow with tensorflow==2.14 and
numpy<2 to ensure a proper pip environment where the tensorboard
CLI works correctly.
Strip [[deprecated]] and [[nodiscard]] attributes from generated
.pb.h/.pb.cc files in configure. Also fix nodiscard warning in
reader.cpp by casting ParseFromString return value to void.
Loading tensorflow during R CMD check creates ~/.keras/keras.json
which violates CRAN policy. Tests only need tbparse.
… install

- Add skip for tensorflow in test-image.R line 19
- Restore py_install('tbparse') in check and test-coverage workflows
@dfalbel dfalbel merged commit 170eca2 into main Apr 27, 2026
7 checks passed
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

Successfully merging this pull request may close these issues.

1 participant