syntactic 0.3.0 (2019-09-25)
- Migrated non-character S4 methods to basejump package, to keep syntactic very lightweight and fast. Defining only the character methods here allows the package to start up very quickly, and improves shell scripting calls defined in the koopa bootloader package.
syntactic 0.3.1 (2019-10-08)
- Now allowing
prefix = FALSE for
upperCamelCase. This override allows the user to disable automatic “X” prefix defined by
make.names internally for input that begins with a syntactically invalid character, such as a number (R-specific) or a non-alphanumeric. We’re now allowing this override so we can pass to new
snake-case shell scripts defined in koopa.
- Also now allowing
smart = FALSE, which disables smart mode handling of mixed case acronyms (e.g. “RNAi”, “mRNA”), numeric delims/decimals (“,” “.”), special characters that can represent words (“+”/“-”; plus/minus), etc. Enabled by default and strongly recommended. Added a new override mode for some edge cases with our new shell methods defined in koopa.
- Migrated character code coverage methods back here from basejump.
- Simplifed code coverage, removing usage of parameterized tests that depend on patrick package.
syntactic 0.3.2 (2019-10-22)
File rename mode support.
upperCamelCase now support file rename mode (
rename = TRUE). This works on either case-sensitive (Linux) or case-insensitive (macOS, Windows) file systems. Files and directories are supported, including files outside of the current working directory.
I recommend using either
snakeCase for files.
When renaming with files beginning with a number,
prefix = TRUE will prefix the file with an “x”, similar to the behavior in
make.names. This can be disabled by setting
prefix = FALSE. Smart acronyms and other features can also be disabled by setting
smart = FALSE.
This code will be called internally in the upcoming koopa update.
syntactic 0.3.3 (2019-12-05)
- Added recursive file rename support.
- Improved handling of " - “, avoiding return of”minus" in file rename mode.
- File extension is automatically converted to lowercase when applicable.
syntactic 0.3.4 (2019-12-08)
- Fixed expected handling of file rename mode on case insensitive file systems. Had to rework the internal code to loop across the files and directories, using an
apply call internally.
syntactic 0.3.5 (2020-01-14)
- Syntactic naming functions now check for “&” and convert to “and”. This behavior can be disabled by setting
smart = FALSE.
- Accented characters are now coerced to plain letters by default internally via
stringi::stri_trans_general. This behavior can be disabled by setting
smart = FALSE.
syntactic 0.3.6 (2020-01-27)
- Migrated S4 generics to acidgenerics package.
- Fix to perserve extension case (e.g. “R”, “Rmd”) for files in rename mode.
camel in favor of
dotted in favor of
kebab in favor of
snake in favor of
upperCamel in favor of
syntactic 0.3.7 (2020-02-02)
camelCase: Bug fix for
strict = TRUE not working as expected in rename mode (
rename = TRUE).
- Switched license from MIT to GPL-3.
- Renamed package title to conform to CRAN requirements.
syntactic 0.3.8 (2020-02-25)
- Rename mode now includes a helpful message showing the original file name and modified target name. This convention matches Perl File::Rename module.
syntactic 0.3.9 (2020-04-07)
- Rename mode now checks for "_" prefix and will skip the file rename. This is particularly useful for avoiding issues with files such as
syntactic 0.3.10 (2020-06-15)
autopadZeros: Migrated character method previously defined in basejump. Also defined support for integer class objects. Improved padding support of integer strings and hardened function against partial padding matches.