Skip to content
Discussion options

You must be logged in to vote

Hey! 👋 Yes, you can definitely set up a GitHub Action to deploy your R package documentation without needing to build a full site using pkgdown.

If your goal is just to make the documentation (from man/*.Rd files) visible on your GitHub Pages site and keep it updated after every commit, you can:

  1. Use roxygen2 to generate the .Rd files.
  2. Convert those .Rd files to HTML using base R's tools::Rd2HTML().
  3. Deploy the generated HTML files to GitHub Pages (e.g., using the docs/ folder on your main branch).

Here’s a minimal example of a GitHub Actions workflow that does exactly that:

name: Build R Documentation

on:
  push:
    branches: [main]

jobs:
  build-docs:
    runs-on: ubuntu-latest

    s…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by mccroweyclinton-EPA
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Actions Build, test, and automate your deployment pipeline with world-class CI/CD Question Ask and answer questions about GitHub features and usage inactive This discussion has been automatically marked as inactive. This was formerly labeled stale.
2 participants