skmisc 0.6.0
-
Added several type validation functions (
is_*_scalar) for robust input checks, including:-
is_bool_scalar()– check if a value is exactlyTRUEorFALSE -
is_char_scalar()– check if a value is a single non-empty character -
is_numeric_scalar()– check if a value is a single numeric scalar
-
-
Added corresponding checker functions that raise an error if validation fails, e.g.:
check_bool_scalar(TRUE)passes,check_bool_scalar(NA)throws arlang_errorcheck_char_scalar("hello")passes,check_char_scalar(" ")throws arlang_errorcheck_numeric_scalar(0.5)passes,check_numeric_scalar(NA)throws arlang_error
Made all
is_*andcheck_*functions consistent in naming and behavior.Added comprehensive testthat tests for all validation and check functions.
skmisc 0.4.0
- Added many checks and tests for
create_article_templateandbib_title_case - Modularized & refactored the
bib_title_casefor better testing and made the function robust in the process. - Enhanced the function error, warning or simple messages.
- Linted the package code using
lintrand formatted the code usingair
skmisc 0.3.0
- Renamed the funciton
bib_title_to_title_casetobib_title_caseand usedlifecycle::deprecate_warn.
skmisc 0.2.0
Function bib_title_to_title_case
- Added
componentsargument to selectively title-case fields ("title","booktitle","journal") or"all"fields (“all” by default). - Added
overwriteargument to control whether existing output files are replaced. - Used safe_title_case() helper to protect text inside braces and safely apply title case.
- Input/output validation improved using fs and cli for robust error messages.
- Refactored component processing to a loop: fast, safe, avoids code duplication.
- Internal helpers
is_char_scalar()andwrap_braces_once()added.
skmisc 0.1.3
- Updated
bib_title_to_title_caseto use multi-line cli message formatting. - Added
climessage formatting in create_article_template. - Started using R package
clito format package messages consistently.
skmisc 0.1.2
- Added the
create_article_template()function that generates an article template for the specified journal using thermarkdown::draftfunction from therticlespackage. It checks whether the journal is supported, creates the necessary directories and files, and formats the article rmarkdown file by adding section chunks and an abstract.
skmisc 0.1.1
- Modified the
bib_title_to_title_case()by adding curly brackets in title so that title casing gets preserved.
skmisc 0.1.0
- Added the first function
bib_title_to_title_case()