Integrated R + Python + LaTeX document system using uv.
Based on an .Rnw (LaTeX Sweave) files.
For more R packages, modify the Makefile's entry setup.
The list of Python packages must be in requirements.txt.
# Use this repo as a GitHub template, or duplicate it
git clone <your-rpweave-template> new-paper
cd new-paper# Create and activate Python environment
uv venv venv
source venv/bin/activate
# Install dependencies
make setup
# Verify everything works
make test# Daily work:
# Write your paper with R/Python code
# Write your paper with R/Python code
# Write your paper with R/Python code
# Write your paper with R/Python code
# Write your paper with R/Python code
make view # Build and view PDF
# Repeat editing & make view until doneHere's how to use the Makefile:
make # See all commands
make setup # One-time setup
make test # Verify environments
make view # Build + open PDF (most used)
make clean # Clean builds
make quick # Clean + build + viewnew-paper/
├── main.Rnw # Your paper content (edit this)
├── chunks/ # Modular code
├── data/ # Your datasets
├── outputs/ # Generated figures
├── requirements.txt # Python dependencies
└── Makefile # Build system (already perfect)
git clone <repo>
cd <repo>
uv venv venv && source venv/bin/activate
make setup
make view- Use
make viewas your primary command during writing - Keep
venvactive in your terminal session - Version control your
.Rnwsource, not the PDF - Use chunks/ for long code sections to keep main.Rnw clean