Document precompute_topological_sorts function#54
Merged
Conversation
Co-authored-by: osorensen <21175639+osorensen@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Document precompute_topological_sorts for compliance and functionality
Document precompute_topological_sorts function
Jan 21, 2026
osorensen
approved these changes
Jan 21, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The
precompute_topological_sortsfunction had inaccurate documentation: the description mentioned a non-existent "output directory" parameter, and the@returnsection incorrectly stated it returns a number instead of a list.Changes
Description: Removed reference to non-existent output directory. Added explanation that topological sorts are "consistent orderings of items that respect pairwise preference constraints"
Return value: Changed from "returns the number of topological sorts" to properly document the list structure:
sort_count: integer with total number of sortssort_matrix: matrix where each column is a topological sortCRAN compliance: Changed backticks to
\code{}markup in details sectionExample output
The documented example now correctly demonstrates both modes:
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/usr/lib/R/bin/exec/R /usr/lib/R/bin/exec/R --no-echo --no-restore -e install.packages(c('Rcpp',~+~'RcppArmadillo',~+~'testthat',~+~'roxygen2'),~+~repos='REDACTED')(dns block)esm.ubuntu.com/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
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.