Skip to content

psymetrics 0.1.5

Choose a tag to compare

@brianmsm brianmsm released this 28 Dec 22:58
· 215 commits to master since this release
9520c95

Bug Fixes and Improvements

  • Dependency Management: Moved ggplot2 and lavaan from Imports to Suggests to minimize mandatory dependencies. Functions now provide informative prompts if a required package is missing at runtime.

  • Robustness: Functions that rely on suggested packages now use internal checks (rlang::check_installed) to provide clearer error messages if dependencies are missing.

  • Examples: Updated all examples to run conditionally, which prevents errors during R CMD check and provides a smoother user experience.

  • S3 Method Registration: Ensured correct and robust S3 method registration for plot and print methods, guaranteeing proper method dispatch by R.

  • Testing: Added an initial testthat suite covering model_fit, compare_model_fit, plotting, and save_table, with optional dependency checks.

  • Plotting: Replaced deprecated geom_errorbarh() usage with geom_errorbar() + orientation = "y" to align with current ggplot2 guidance.

  • Table Export & Formatting: save_table() now accepts "portrait" (alias "vertical") for template orientation and forwards formatting arguments. prepare_table() respects ci_digits inputs.

  • Documentation:

    • Added a central help page (?plot-methods) to document the generic plot function.
    • Improved navigation between help files with @Seealso cross-references.
    • Updated the package Title in DESCRIPTION to better reflect its purpose ("Unified Tools for Psychometric Model Analysis").

Full Changelog: v0.1.4...v0.1.5