Skip to content

Fix R CMD check failures in depends-only mode#96

Closed
Copilot wants to merge 2 commits intomainfrom
copilot/fix-reactlog-package-checks
Closed

Fix R CMD check failures in depends-only mode#96
Copilot wants to merge 2 commits intomainfrom
copilot/fix-reactlog-package-checks

Conversation

Copy link
Copy Markdown

Copilot AI commented Apr 15, 2026

Three bugs caused R CMD check to fail under _R_CHECK_DEPENDS_ONLY_=true (where only Depends and VignetteBuilder packages are installed, not Suggests).

Changes

  • R/shinyModule.R — broken tryCatch error handler: error = function() missing its condition argument causes Error in value[[3L]](cond): unused argument (cond) at test runtime. Fixed to error = function(e).

  • R/shinyModule.R — invalid return() in example: shiny is unavailable in depends-only mode; the if (!require("shiny")) { return() } guard calls return() at top level, which is illegal in R CMD check examples. Replaced with if (require("shiny")) { <entire example> }.

  • DESCRIPTIONrmarkdown missing from VignetteBuilder: R CMD check only installs VignetteBuilder packages for vignette rebuilding in depends-only mode. rmarkdown was only in Suggests, so vignette rebuild failed with there is no package called 'rmarkdown'. Added rmarkdown to VignetteBuilder.

VignetteBuilder: knitr, rmarkdown

…ignette rmarkdown

Agent-Logs-Url: https://github.com/rstudio/reactlog/sessions/8a4f4a4c-8c6f-4dff-9c5d-e0b5c39b5b78

Co-authored-by: karangattu <4220325+karangattu@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix automated package checks for reactlog on main Fix R CMD check failures in depends-only mode Apr 15, 2026
Copilot AI requested a review from karangattu April 15, 2026 03:04
@karangattu
Copy link
Copy Markdown
Contributor

Closing this since #98 is more comprehensive fix than this PR

@karangattu karangattu closed this Apr 15, 2026
@karangattu karangattu deleted the copilot/fix-reactlog-package-checks branch April 15, 2026 03:19
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.

Automated fix: reactlog package checks failing on main

2 participants