Version 0.3
syntactic 0.3.0 (2019-09-25)
Major changes:
- 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)
Minor changes:
- Now allowing
prefix = FALSEforcamelCase,dottedCase,kebabCase,snakeCase, andupperCamelCase. This override allows the user to disable automatic “X” prefix defined bymake.namesinternally 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 newcamel-case,kebab-case, andsnake-caseshell 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.
camelCase, kebabCase, snakeCase, and 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 kebabCase or 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 settingprefix = 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)
Major changes:
- Added recursive file rename support.
Minor changes:
- 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)
Minor changes:
- 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
applycall internally.
syntactic 0.3.5 (2020-01-14)
Minor changes:
- 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 settingsmart = FALSE.
syntactic 0.3.6 (2020-01-27)
Major changes:
- Migrated S4 generics to acidgenerics package.
Minor changes:
- Fix to perserve extension case (e.g. “R”, “Rmd”) for files in rename mode.
Deprecations:
- Deprecated
camelin favor ofcamelCase. - Deprecated
dottedin favor ofdottedCase. - Deprecated
kebabin favor ofkebabCase. - Deprecated
snakein favor ofsnakeCase. - Deprecated
upperCamelin favor ofupperCamelCase.
syntactic 0.3.7 (2020-02-02)
Minor changes:
-
camelCase: Bug fix forstrict = TRUEnot 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)
Minor changes:
- Rename mode now includes a helpful message showing the original file name and modified target name. This convention matches Perl File::Rename module.