-
Notifications
You must be signed in to change notification settings - Fork 2
Fix JupyterBook 2.0 documentation build on GitHub Pages #92
Copy link
Copy link
Closed
Description
Problem
The documentation build is failing on GitHub Pages with JupyterBook 2.0 due to R/rpy2 import errors in the notebooks.
Error
Error importing in API mode: ImportError
This occurs because:
- GitHub Actions doesn't have R installed by default
- The notebooks try to import
rpy2directly without proper error handling - JupyterBook 2.0 has stricter notebook execution requirements
Solution
Options to fix:
- Update all notebooks to gracefully handle missing R/rpy2
- Install R in the GitHub Actions workflow
- Use the Python-only implementation (see Replace R/rpy2 dependency with py-statmatch once ready #93)
Affected notebooks
docs/models/matching/matching-imputation.ipynbdocs/models/qrf/qrf-imputation.ipynbdocs/autoimpute/autoimpute.ipynbdocs/models/quantreg/quantreg-imputation.ipynbdocs/models/ols/ols-imputation.ipynbdocs/imputation-benchmarking/benchmarking-methods.ipynb
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels