Skip to content

v0.0.8

Choose a tag to compare

@ddotta ddotta released this 09 Dec 12:29
· 45 commits to main since this release

quartify 0.0.8

CRAN Submission Fixes

  • Documentation Compliance:

    • Added 'Quarto' in single quotes in DESCRIPTION per CRAN policy
    • Added @return documentation for all exported functions (rtoqmd_addin, quartify_app, quartify_app_web)
    • Changed \dontrun{} to \donttest{} for executable examples in rtoqmd() and rtoqmd_dir()
    • Updated all examples to write to tempdir() instead of current directory
  • Code Quality:

    • Replaced cat() calls with message() for user-facing messages per CRAN guidelines
    • Fixed partial argument matching: changed all render arguments to render_html in Shiny apps
    • Fixed ERROR in R CMD check: changed non-executable example in rtoqmd_dir() back to \dontrun{}
  • User Interface Improvements:

    • Integrated shinyalert package for better user notifications
    • Replaced showNotification() with elegant modal dialogs using shinyalert()
    • Success and error messages now displayed in centered modal windows
    • Bilingual support: titles and messages adapt to selected language (EN/FR)
    • Added shinyalert to package dependencies

New Features

  • Code Quality Integration: New use_styler and use_lintr parameters for code quality checks:

    • use_styler: Automatically format code using styler and show differences in tabsets
    • use_lintr: Run lintr quality checks and display issues in tabsets
    • Available in both rtoqmd() and rtoqmd_dir() functions
    • Tabsets show Original Code, Styled Code (if changes), and Lint Issues (if found)
    • Only creates tabsets when there are actual issues or changes to report
    • Example file: inst/examples/example_code_quality.R
  • RStudio Snippets Installation: New install_quartify_snippets() function to automatically install useful snippets:

    • header: R script header template with Title, Author, Date, Description
    • callout: Quarto callout structure
    • mermaid: Mermaid diagram chunk with options
    • tabset: Tabset structure with tabs

Bug Fixes

  • Fixed rtoqmd_addin() error when no document is active or unsaved (handled NULL/empty path cases)

Documentation

  • Updated vignettes to reference install_quartify_snippets() function
  • Simplified tabset examples (removed "Data Structure" and "First Rows" tabs)
  • Added snippet tips for callouts, mermaid diagrams, and tabsets in both English and French vignettes

Full Changelog: v0.0.7...v0.0.8