OTTR
  • Quick Start
    • Getting started
    • Next steps
    • Example use cases
    • Cheatsheet gallery
  • Build with OTTR
    • Template
    • Start writing
    • Enroll for sync updates
    • OTTR-fy existing repo
    • Giving credits

    • Highly Recommended Steps
    • Google Analytics
    • Citing sources
    • Google Docs
    • Borrowing chapters

    • Additional Customizations
    • Style
    • Checks
    • Docker
  • Publishing OTTR courses
    • Bookdown
    • Coursera
    • Leanpub
  • Troubleshooting
  • Contact

On this page

  • Courses
    • Quarto Courses
    • R Markdown Courses
  • Websites
    • Quarto Websites
    • R Markdown Websites
  • Dashboards
    • Metricminer Dashboard

Getting Started

Prerequisites for using OTTR

You do not need to be an expert to get started. A few basics will help:

  • Writing: basic Markdown plus Quarto or R Markdown, depending on your template.
  • GitHub: an account and enough comfort to create repositories, update settings, and read GitHub Actions results.
  • Workflow: use the browser-only entry path if you are new to Git, or install Git/GitKraken for local editing.

Choose what you want to build

Courses Chaptered learning materials with navigation, publishing options, and course-specific setup guides. Websites Documentation, project sites, and public resources that do not need course-style structure. Dashboards Metric dashboards for GitHub, analytics, forms, and package stats.

Courses

Use this path when: you are building chaptered learning materials, modules, or a course website.

Warning

Do not start an OTTR course setup from a forked repository if you plan to use OTTRfy. OTTRfy works with regular repositories, so use a template-generated repository or a new repository instead.

Quarto Courses

Best for new course builds

Template repository: ottrproject/OTTR_Quarto

↗ Open in new tab

Tip

Need more help? Check out the full setup guide here.

Next Steps →

R Markdown Courses

Best for .Rmd or Bookdown courses

Template repository: ottrproject/OTTR_Template

↗ Open in new tab

Tip

Need more help? Check out the full setup guide here.

Next Steps →

Websites

Use this path when: you want a project website, documentation site, resource hub, or public-facing guide without course-style chapters.

Warning

Do not start an OTTR website setup from a forked repository if you plan to use OTTRfy. OTTRfy works with regular repositories, so use a template-generated repository or a new repository instead.

Quarto Websites

Best for new websites

Template repository: ottrproject/OTTR_Quarto_Website

↗ Open in new tab

Tip

Need more help? Check out the full setup guide here.

Next Steps →

R Markdown Websites

Best for existing .Rmd sites

Template repository: ottrproject/OTTR_Template_Website

↗ Open in new tab

Tip

Need more help? Check out the full setup guide here.

Next Steps →

Dashboards

Metricminer Dashboard

Use this path when: you want a dashboard that reports project metrics from GitHub, Google Analytics, Google Forms, CRAN, Calendly, and other sources.

Template repository: ottrproject/metricminer-dashboard

  1. Create a new repository from the metricminer-dashboard template.
  2. Make the repository public, then enable GitHub Actions Read and write permissions and Allow GitHub Actions to create and approve pull requests.
  3. Add a repository secret named GH_PAT using a classic personal access token with repo and workflow scopes.
  4. Add credentials for the metric sources you want to collect from.
  5. Deploy from the main branch and /docs folder in GitHub Pages, then enable HTTPS.
Dashboard setup notes Settings, secrets, and first deploy

On the landing page of the metricminer-dashboard repository, locate the green Use this template button in the upper right corner. Click it, then select Create a new repository and follow the instructions.

After creating your repository, go to Settings > Actions > General. Make sure you have:

  1. Given Read and write permissions.
  2. Checked Allow GitHub Actions to create and approve pull requests.

Then click Save.

Go to Settings > Secrets and variables > Actions > Repository secrets and click New repository secret. Add:

  • Name: GH_PAT (this exact name is required)
  • Secret: create a classic personal access token with repo and workflow scopes checked.

Set up credentials for whichever metric sources you want to collect from. Each source requires its own repository secret — see the metricminer documentation for the specific tokens needed (Google Analytics, GitHub, etc.).

In your repository, go to Settings > Pages and configure:

  • Source: Deploy from a branch
  • Branch: main, folder /docs

Click Save, then check Enforce HTTPS at the bottom of the page.

Warning: If you visit your URL before pushing any file changes, you may see a 404 error. Check after filing your first pull request.

Edit the template’s .Rmd files to configure which metrics to display and how to arrange them. If you adapt the dashboard into a Quarto site, use .qmd files with the same project-specific metric code. See metricminer.org for full documentation.


If you wish to contribute to OTTR, please take a look at our Code of Conduct.


Now that your repository is set up, see Next Steps → for what to do next.



Your feedback is greatly appreciated! You can fill out this form
or file a GitHub issue.

Otter images by Jimin Hwang.