RSTheme_dark() - Apply R.AlphA dark theme to RStudio editor (migrated from R.AlphA.AI)RSTheme_light() - Apply a light theme to RStudio editor (placeholder, applies Chrome)alphaThemes - Exported dataset containing the R.AlphA theme registry (dark, mid)ralpha_fold() / ralpha_unfold() - Added delay for async executeCommand to fix timing issuesroot() - Now accepts ... as first parameter for path building. Positional arguments are now interpreted as path components, not as includeFName. Use root(includeFName = TRUE) explicitly to get the full file path.root() - Can now build paths relative to the source file directory: root("data", "input.csv") returns the full path to data/input.csv relative to the script location.Rtimer - Removed intermediate columns ct_proc and dt_proc for cleaner output. Only diffTime and totalTime are now returned.Major effort to reduce and optimize package dependencies for improved stability and CI/CD reliability.
Dependencies removed from Imports:
stringi and stringr - Replaced with base R equivalents (gsub, grepl, regmatches)openxlsx - Replaced by readxl (read) and writexl (write) for xlsx handlingtidyr - replace_na() replaced by dplyr::coalesce() (already imported)diffr - Replaced by diffobj (lighter alternative, 2 deps vs 21)jsonlite - No longer needed after diffr removalhtmlwidgets - No longer needed after diffr removalDependencies moved to Suggests:
shiny and shinyWidgets - For optional Shiny integrationFormats removed from importAll():
arrow and qs)Result: 25 → 12 direct imports (-52%), eliminating problematic stringi dependency that caused CI/CD failures on macOS runners.
show_diff() - Now uses diffobj for comparison, with preserved dark theme CSSimportAll() - Simplified to support CSV, Excel, and RDS formats onlyshiny_lum_0_100() - Added requireNamespace() checks, function still works when shiny packages are installedstringi ICU library dependenciessetOption() - Sets a global option from a named list elementprintif() - Conditionally print an objectloadCheck() - Load and install package if necessaryshow_diff() - Compare two texts or files with diffrRtimer - New R6 class replacing the timer() function : provides functionality
to add timing checkpoints, calculate time differences, and generate summary data table.ralpha_fold() - Easily fold all code bracketsralpha_unfold() - Efficient way to unfold code bracketsNewly deprecated
timer() - It is recommended to use the new class RTimerfoldAllBr() - It is recommended to use ralpha_fold() and ralpha_unfold()importAll() - Improved column type harmonization across imported files.importAll() - Added renameTable parameter for systematic column renaming across imported files.importAll() - Added excludePattern parameter to exclude files from import based on pattern matching.importAll() - Fixed handling of all different possibilities between path
and fileList (relative/absolute/omitted path, combined with fileList as
absolute/relative paths, or a pattern)R.AlphA.Home provides a collection of personal functions designed to simplify and streamline common R programming tasks. This package offers reusable tools and shortcuts for frequently used calculations and workflows, making R programming more accessible and efficient.
Data Manipulation and Processing:
cols_pad() - Add Variables to ease data usage in a Pivot TablecompareVars() - Compare Table VariablescountSwitches() - Create an incremented Counter, based on Start/Stop MarkersimportAll() - Function to Import and Concatenate Multiple data filesleft_join_checks() - Left Join with Validation ChecksDate and Time Utilities:
rdate() - Generate Random Dates, with a similar usage as the r* functionstimer() - Allow organized tracking of R code execution timeData Output and Formatting:
quickSave() - Save File in a Directory storing saves, prefixing it with current datesepThsd() - Quick number formatting with customizable defaultsprintif() - Conditionally Print an ObjectGraphics and Visual Utilities:
lum_0_100() - Adjust the Brightness of the Graphics Window for confortable viewing when using ggplot2ret_lum() - Adjust the Brightness of a Hex Colorshiny_lum_0_100() - Set Shiny Background and Sidebar Colors to a Chosen Shade of GreySystem and Environment:
root() - Get Root Directory of Current Source FilesetOption() - Sets a global option from a named list elementfoldAllBr() - Easily Fold Code Parts