Skip to content

feat: add write_dataset_dictionary()#8

Merged
jonthegeek merged 2 commits into
mainfrom
fix-4
Mar 2, 2026
Merged

feat: add write_dataset_dictionary()#8
jonthegeek merged 2 commits into
mainfrom
fix-4

Conversation

@jonthegeek
Copy link
Copy Markdown
Contributor

Adds exported write_dataset_dictionary() and internal helper .write_file_lines(). The function writes a knitr::kable() Markdown table of create_dataset_dictionary(dataset) to
{path}/{dataset_name}_dictionary.md, intended as a hand-editable bootstrap step in the dictionary workflow.

Adds exported `write_dataset_dictionary()` and internal helper
`.write_file_lines()`. The function writes a knitr::kable() Markdown
table of `create_dataset_dictionary(dataset)` to
`{path}/{dataset_name}_dictionary.md`, intended as a hand-editable
bootstrap step in the dictionary workflow.

- Closes #4
Copilot AI review requested due to automatic review settings March 2, 2026 11:12
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR implements the write_dataset_dictionary() exported function (closing issue #4), which bootstraps a Markdown data dictionary file for a dataset. It also adds the internal helper .write_file_lines(). Together these form the primary interactive entry point for the dictionary workflow, outputting a knitr::kable() table to {path}/{dataset_name}_dictionary.md for hand-editing.

Changes:

  • Adds R/write_dataset_dictionary.R with write_dataset_dictionary() and .write_file_lines().
  • Adds full test coverage in tests/testthat/test-write_dataset_dictionary.R, and removes redundant skip_if_not_installed guards from test-describe_dataset.R.
  • Updates DESCRIPTION, NAMESPACE, and man/ with the new function, its internal helper, and new dependencies (knitr, rlang in Imports; usethis in Suggests).

Reviewed changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
R/write_dataset_dictionary.R New file: implements write_dataset_dictionary() and .write_file_lines()
tests/testthat/test-write_dataset_dictionary.R New test file: full coverage for both new functions
tests/testthat/test-describe_dataset.R Removes redundant skip_if_not_installed guards for Imports packages
man/write_dataset_dictionary.Rd Generated Rd for the new exported function
man/dot-write_file_lines.Rd Generated Rd for the new internal helper
NAMESPACE Exports write_dataset_dictionary
DESCRIPTION Adds knitr and rlang to Imports; usethis and withr to Suggests

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread R/write_dataset_dictionary.R Outdated
Comment thread tests/testthat/test-write_dataset_dictionary.R Outdated
@jonthegeek jonthegeek enabled auto-merge (squash) March 2, 2026 11:47
@jonthegeek jonthegeek merged commit db0524d into main Mar 2, 2026
7 checks passed
@jonthegeek jonthegeek deleted the fix-4 branch March 2, 2026 11:49
Copilot AI added a commit that referenced this pull request Mar 9, 2026
Co-authored-by: jonthegeek <33983824+jonthegeek@users.noreply.github.com>
jonthegeek added a commit that referenced this pull request Mar 9, 2026
* Initial plan

* docs: adapt AGENTS.md and skills from tibblify (#8)

Co-authored-by: jonthegeek <33983824+jonthegeek@users.noreply.github.com>

* Tweaks from tibblify versions.

* fix: copilot suggestions

Use more realistic example.
Remove irrelevant integration test example.

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: jonthegeek <33983824+jonthegeek@users.noreply.github.com>
Co-authored-by: Jon Harmon <jonthegeek@gmail.com>
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.

feat: write_dataset_dictionary()

2 participants