Skip to content

Add documentation and export for list_files_github_gists - #22

Closed
brshallo with Copilot wants to merge 4 commits into
mainfrom
copilot/add-roxygen-documentation-list-files-github-gists
Closed

brshallo with Copilot wants to merge 4 commits into
mainfrom
copilot/add-roxygen-documentation-list-files-github-gists

Conversation

Copilot AI commented Jan 29, 2026 •

Copy link
Copy Markdown
Contributor

pkgdown build was failing because list_files_github_gists was referenced in _pkgdown.yml but lacked documentation and export.

Changes

  • R/list-files-gh-gists.R: Added roxygen2 documentation block with @export directive
  • man/list_files_github_gists.Rd: Created documentation file following existing patterns from list_files_github_repo
  • NAMESPACE: Added export declaration

The function signature and behavior are unchanged - only documentation was added.

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • cloud.r-project.org
    • Triggering command: /usr/lib/R/bin/exec/R /usr/lib/R/bin/exec/R --no-echo --no-restore -e install.packages('roxygen2',~+~repos='REDACTED') (dns block)
  • esm.ubuntu.com
    • Triggering command: /usr/lib/apt/methods/https /usr/lib/apt/methods/https (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

Original prompt

Add roxygen documentation and export for list_files_github_gists to fix pkgdown build

Problem summary:
The pkgdown site build is failing with the error: "In _pkgdown.yml, reference[2].contents[2] (list_files_github_gists) must be a known topic name or alias." This is because the function list_files_github_gists in R/list-files-gh-gists.R is not documented/exported, so pkgdown cannot find the topic referenced in _pkgdown.yml.

Goal:

  • Add a proper roxygen2 documentation block for the function list_files_github_gists, including @title, @description, @PARAM, @return, @examples and @export.
  • Run roxygen2::roxygenise('.') to generate the corresponding man/list_files_github_gists.Rd file so that pkgdown recognizes the topic.
  • Commit the changes to the existing branch fix/pkgdown-doc-1 and open a pull request against main with a descriptive title and body.

Files to change:

  • R/list-files-gh-gists.R: add roxygen documentation block immediately above the existing list_files_github_gists() function definition and ensure @export is present.

Files to generate/update:

  • man/list_files_github_gists.Rd: generated by roxygen2::roxygenise(). Ensure it contains the alias/\name for list_files_github_gists so pkgdown can find it.

Commit message:
Add roxygen documentation and export for list_files_github_gists to fix pkgdown build

Pull request title:
Add docs for list_files_github_gists

Pull request description/body:
This PR adds roxygen documentation and an @export tag for the function list_files_github_gists in R/list-files-gh-gists.R and regenerates the man page using roxygen2. This fixes the pkgdown site build error where _pkgdown.yml referenced list_files_github_gists but no documented topic existed.

Notes:

  • Do not change other package code or behavior.
  • Ensure roxygen2 is run in the package root to update man/ files before committing.
  • Target branch is main.

This pull request was created from Copilot chat.


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI and others added 2 commits January 29, 2026 04:24
…ix pkgdown build

Co-authored-by: brshallo <30487784+brshallo@users.noreply.github.com>
Co-authored-by: brshallo <30487784+brshallo@users.noreply.github.com>
Copilot AI changed the title [WIP] Add roxygen documentation for list_files_github_gists to fix pkgdown build Add documentation and export for list_files_github_gists Jan 29, 2026
Copilot AI requested a review from brshallo January 29, 2026 04:27
@brshallo
brshallo marked this pull request as ready for review January 29, 2026 04:32
@brshallo brshallo closed this Jan 29, 2026
@brshallo
brshallo deleted the copilot/add-roxygen-documentation-list-files-github-gists branch January 29, 2026 05:01
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.

2 participants