Skip to content

dev UD - #39

Merged
vertesy merged 8 commits into
devfrom
main
Sep 2, 2026
Merged

vertesy merged 8 commits into
devfrom
main

Conversation

@vertesy

@vertesy vertesy commented Sep 2, 2026

Copy link
Copy Markdown
Owner

No description provided.

vertesy and others added 7 commits September 1, 2026 08:44
* docs: remove duplicate title

* Fix documentation typos and metadata (#17)

* Add AGENTS guide for repository (#19)

* Add defensive stopifnot checks to file path builder (#18)

* Annotate code: explain the non-obvious operations (#30)

* Annotate code; flag 3 pre-existing bugs (not fixed)

* Fix 3 bugs flagged in PR #30 review

- read.simple.ssv(): add missing `asTibble` parameter (was referenced
  but never defined, erroring whenever wRownames = TRUE, the default).
- write.simple.xlsx(): assignRownames() now uses its own argument `x`
  instead of the undefined `df`, fixing has_row_names = FALSE.
- qs.2.table(): fix `qs:qread` -> `qs::qread`, use the real
  `stringi::stri_detect_regex` function, and define `base_filename`/
  `out_path` on every branch so the function actually runs. Also adds
  `stringi` to Imports/NAMESPACE since it's now genuinely used.


* Fix qs.2.table()'s excel branch crashing on a bare data.frame

write.simple.xlsx() requires a list of sheets; qs.2.table() was
passing the loaded table directly, which fails its
is.data.frame(x)-per-element assertion. Wrap it in a list first.
* docs: remove duplicate title

* Fix documentation typos and metadata (#17)

* Add AGENTS guide for repository (#19)

* Add defensive stopifnot checks to file path builder (#18)

* Annotate code: explain the non-obvious operations (#30)

* Annotate code; flag 3 pre-existing bugs (not fixed)

* Fix 3 bugs flagged in PR #30 review

- read.simple.ssv(): add missing `asTibble` parameter (was referenced
  but never defined, erroring whenever wRownames = TRUE, the default).
- write.simple.xlsx(): assignRownames() now uses its own argument `x`
  instead of the undefined `df`, fixing has_row_names = FALSE.
- qs.2.table(): fix `qs:qread` -> `qs::qread`, use the real
  `stringi::stri_detect_regex` function, and define `base_filename`/
  `out_path` on every branch so the function actually runs. Also adds
  `stringi` to Imports/NAMESPACE since it's now genuinely used.

Co-authored-by: Abel Vertesy <5101911+vertesy@users.noreply.github.com>

* Fix qs.2.table()'s excel branch crashing on a bare data.frame

write.simple.xlsx() requires a list of sheets; qs.2.table() was
passing the loaded table directly, which fails its
is.data.frame(x)-per-element assertion. Wrap it in a list first.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>

---------

Co-authored-by: claude[bot] <41898282+claude[bot]@users.noreply.github.com>
Co-authored-by: Abel Vertesy <5101911+vertesy@users.noreply.github.com>
Co-authored-by: Claude Sonnet 5 <noreply@anthropic.com>

* Address Codex review: declare stringi dependency, preserve row names on xlsx export

- DESCRIPTION: add stringi to Imports, since R/ReadWriter.R now calls
  stringi::stri_detect_regex() and NAMESPACE already declares the importFrom.
- write.simple.xlsx(): when has_row_names = FALSE, the identifier column is
  moved into row names via column.2.row.names() before writing. The final
  write.xlsx() call still passed the original has_row_names (FALSE) as
  rowNames, so those converted identifiers were dropped from the workbook.
  Track the post-conversion state separately (write_row_names) and pass that
  to write.xlsx() instead.

Co-authored-by: Abel Vertesy <5101911+vertesy@users.noreply.github.com>

---------

Co-authored-by: claude[bot] <41898282+claude[bot]@users.noreply.github.com>
Co-authored-by: Abel Vertesy <5101911+vertesy@users.noreply.github.com>
Co-authored-by: Claude Sonnet 5 <noreply@anthropic.com>
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
* docs: remove duplicate title

* Fix documentation typos and metadata (#17)

* Add AGENTS guide for repository (#19)

* Add defensive stopifnot checks to file path builder (#18)

* Annotate code: explain the non-obvious operations (#30)

* Annotate code; flag 3 pre-existing bugs (not fixed)

* Fix 3 bugs flagged in PR #30 review

- read.simple.ssv(): add missing `asTibble` parameter (was referenced
  but never defined, erroring whenever wRownames = TRUE, the default).
- write.simple.xlsx(): assignRownames() now uses its own argument `x`
  instead of the undefined `df`, fixing has_row_names = FALSE.
- qs.2.table(): fix `qs:qread` -> `qs::qread`, use the real
  `stringi::stri_detect_regex` function, and define `base_filename`/
  `out_path` on every branch so the function actually runs. Also adds
  `stringi` to Imports/NAMESPACE since it's now genuinely used.

Co-authored-by: Abel Vertesy <5101911+vertesy@users.noreply.github.com>

* Fix qs.2.table()'s excel branch crashing on a bare data.frame

write.simple.xlsx() requires a list of sheets; qs.2.table() was
passing the loaded table directly, which fails its
is.data.frame(x)-per-element assertion. Wrap it in a list first.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>

---------

Co-authored-by: claude[bot] <41898282+claude[bot]@users.noreply.github.com>
Co-authored-by: Abel Vertesy <5101911+vertesy@users.noreply.github.com>
Co-authored-by: Claude Sonnet 5 <noreply@anthropic.com>

* Address Codex review: declare stringi dependency, preserve row names on xlsx export

- DESCRIPTION: add stringi to Imports, since R/ReadWriter.R now calls
  stringi::stri_detect_regex() and NAMESPACE already declares the importFrom.
- write.simple.xlsx(): when has_row_names = FALSE, the identifier column is
  moved into row names via column.2.row.names() before writing. The final
  write.xlsx() call still passed the original has_row_names (FALSE) as
  rowNames, so those converted identifiers were dropped from the workbook.
  Track the post-conversion state separately (write_row_names) and pass that
  to write.xlsx() instead.

Co-authored-by: Abel Vertesy <5101911+vertesy@users.noreply.github.com>

---------

Co-authored-by: claude[bot] <41898282+claude[bot]@users.noreply.github.com>
Co-authored-by: Abel Vertesy <5101911+vertesy@users.noreply.github.com>
Co-authored-by: Claude Sonnet 5 <noreply@anthropic.com>
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
* docs: remove duplicate title

* Fix documentation typos and metadata (#17)

* Add AGENTS guide for repository (#19)

* Add defensive stopifnot checks to file path builder (#18)

* Annotate code: explain the non-obvious operations (#30)

* Annotate code; flag 3 pre-existing bugs (not fixed)

* Fix 3 bugs flagged in PR #30 review

- read.simple.ssv(): add missing `asTibble` parameter (was referenced
  but never defined, erroring whenever wRownames = TRUE, the default).
- write.simple.xlsx(): assignRownames() now uses its own argument `x`
  instead of the undefined `df`, fixing has_row_names = FALSE.
- qs.2.table(): fix `qs:qread` -> `qs::qread`, use the real
  `stringi::stri_detect_regex` function, and define `base_filename`/
  `out_path` on every branch so the function actually runs. Also adds
  `stringi` to Imports/NAMESPACE since it's now genuinely used.

Co-authored-by: Abel Vertesy <5101911+vertesy@users.noreply.github.com>

* Fix qs.2.table()'s excel branch crashing on a bare data.frame

write.simple.xlsx() requires a list of sheets; qs.2.table() was
passing the loaded table directly, which fails its
is.data.frame(x)-per-element assertion. Wrap it in a list first.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>

---------

Co-authored-by: claude[bot] <41898282+claude[bot]@users.noreply.github.com>
Co-authored-by: Abel Vertesy <5101911+vertesy@users.noreply.github.com>
Co-authored-by: Claude Sonnet 5 <noreply@anthropic.com>

* Address Codex review: declare stringi dependency, preserve row names on xlsx export

- DESCRIPTION: add stringi to Imports, since R/ReadWriter.R now calls
  stringi::stri_detect_regex() and NAMESPACE already declares the importFrom.
- write.simple.xlsx(): when has_row_names = FALSE, the identifier column is
  moved into row names via column.2.row.names() before writing. The final
  write.xlsx() call still passed the original has_row_names (FALSE) as
  rowNames, so those converted identifiers were dropped from the workbook.
  Track the post-conversion state separately (write_row_names) and pass that
  to write.xlsx() instead.

Co-authored-by: Abel Vertesy <5101911+vertesy@users.noreply.github.com>

* Consolidate list-of-functions cleanup into one file.remove() call (#34)

Replaces the per-file file.remove() call with a single call that matches every generated list.of.functions.in.*.det.md report by pattern (this repo generates 2: ReadWriter and Deprecated.Functions -- only the first was ever cleaned up before). The old line is commented out, not deleted.

Co-authored-by: Claude Sonnet 5 <noreply@anthropic.com>

---------

Co-authored-by: claude[bot] <41898282+claude[bot]@users.noreply.github.com>
Co-authored-by: Abel Vertesy <5101911+vertesy@users.noreply.github.com>
Co-authored-by: Claude Sonnet 5 <noreply@anthropic.com>
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
* docs: remove duplicate title

* Fix documentation typos and metadata (#17)

* Add AGENTS guide for repository (#19)

* Add defensive stopifnot checks to file path builder (#18)

* Annotate code: explain the non-obvious operations (#30)

* Annotate code; flag 3 pre-existing bugs (not fixed)

* Fix 3 bugs flagged in PR #30 review

- read.simple.ssv(): add missing `asTibble` parameter (was referenced
  but never defined, erroring whenever wRownames = TRUE, the default).
- write.simple.xlsx(): assignRownames() now uses its own argument `x`
  instead of the undefined `df`, fixing has_row_names = FALSE.
- qs.2.table(): fix `qs:qread` -> `qs::qread`, use the real
  `stringi::stri_detect_regex` function, and define `base_filename`/
  `out_path` on every branch so the function actually runs. Also adds
  `stringi` to Imports/NAMESPACE since it's now genuinely used.

Co-authored-by: Abel Vertesy <5101911+vertesy@users.noreply.github.com>

* Fix qs.2.table()'s excel branch crashing on a bare data.frame

write.simple.xlsx() requires a list of sheets; qs.2.table() was
passing the loaded table directly, which fails its
is.data.frame(x)-per-element assertion. Wrap it in a list first.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>

---------

Co-authored-by: claude[bot] <41898282+claude[bot]@users.noreply.github.com>
Co-authored-by: Abel Vertesy <5101911+vertesy@users.noreply.github.com>
Co-authored-by: Claude Sonnet 5 <noreply@anthropic.com>

* Address Codex review: declare stringi dependency, preserve row names on xlsx export

- DESCRIPTION: add stringi to Imports, since R/ReadWriter.R now calls
  stringi::stri_detect_regex() and NAMESPACE already declares the importFrom.
- write.simple.xlsx(): when has_row_names = FALSE, the identifier column is
  moved into row names via column.2.row.names() before writing. The final
  write.xlsx() call still passed the original has_row_names (FALSE) as
  rowNames, so those converted identifiers were dropped from the workbook.
  Track the post-conversion state separately (write_row_names) and pass that
  to write.xlsx() instead.

Co-authored-by: Abel Vertesy <5101911+vertesy@users.noreply.github.com>

* Consolidate list-of-functions cleanup into one file.remove() call (#34)

Replaces the per-file file.remove() call with a single call that matches every generated list.of.functions.in.*.det.md report by pattern (this repo generates 2: ReadWriter and Deprecated.Functions -- only the first was ever cleaned up before). The old line is commented out, not deleted.

Co-authored-by: Claude Sonnet 5 <noreply@anthropic.com>

---------

Co-authored-by: claude[bot] <41898282+claude[bot]@users.noreply.github.com>
Co-authored-by: Abel Vertesy <5101911+vertesy@users.noreply.github.com>
Co-authored-by: Claude Sonnet 5 <noreply@anthropic.com>
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
…37)

R/Deprecated.Functions.R disabled write.simple.xlsx.old by prefixing
every line with `#'` (roxygen doc marker) instead of `#`. Since the
block wasn't followed by a function definition, roxygen2 attached the
whole raw block as a stray \section in convert.tsv.data.Rd, causing:
- checkRd \dontrun not recognized
- Lost braces / missing escapes warnings
- a spurious \link{1} from unescaped `[1]` (markdown auto-link)

Changed the disabling prefix to plain `#` (matching the convention
already used for the read.simple.xls block above it) and regenerated
man/convert.tsv.data.Rd accordingly.


Claude-Session: https://claude.ai/code/session_013UuQpRq1Pgs1ZwhBbegFiK

Co-authored-by: Claude <noreply@anthropic.com>

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 971889b223

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread DESCRIPTION
qs,
readr
readr,
stringi

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Add stringi to the metadata source

When Development/Create_the_ReadWriter_Package.R next runs, Development/config.R still supplies imports = "qs, openxlsx, gtools, readr", so the generated DESCRIPTION will drop this newly added direct dependency even though qs.2.table() calls stringi::stri_detect_regex(). Add stringi to the config's imports rather than only to this generated file.

AGENTS.md reference: AGENTS.md:L15-L17

Useful? React with 👍 / 👎.

@vertesy

vertesy commented Sep 2, 2026

Copy link
Copy Markdown
Owner Author

@claude

could you please address:

"Add stringi to the metadata source When Development/Create_the_ReadWriter_Package.R next runs, Development/config.R still supplies imports = "qs, openxlsx, gtools, readr", so the generated DESCRIPTION will drop this newly added direct dependency even though qs.2.table() calls stringi::stri_detect_regex(). Add stringi to the config's imports rather than only to this generated file."

@claude

claude Bot commented Sep 2, 2026 •

Copy link
Copy Markdown

Claude finished @vertesy's task in 46s —— View job


✅ Addressed Codex feedback

  • Gather context (found Development/config.R)
  • Add stringi to the config's imports
  • Verify DESCRIPTION consistency
  • Commit and push

Change made: Development/config.R:17 — added stringi to the imports string, so it now reads:

imports = "qs, openxlsx, gtools, readr, stringi",

This was the metadata source Codex flagged: the DESCRIPTION file already listed stringi (since qs.2.table() calls stringi::stri_detect_regex()), but Development/config.R hadn't been updated, so the next run of Development/Create_the_ReadWriter_Package.R would have regenerated DESCRIPTION and silently dropped the stringi dependency again. Now both are in sync.

Pushed as commit 8c2f17b on branch main.

The DESCRIPTION file already lists stringi as a direct dependency
(used by qs.2.table() via stringi::stri_detect_regex()), but
Development/config.R still lacked it, so regenerating the package
would drop the dependency again.

Co-authored-by: Abel Vertesy <5101911+vertesy@users.noreply.github.com>
@vertesy
vertesy merged commit 394b1a0 into dev Sep 2, 2026
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.

1 participant