Saves an R object as an RDS file using the specified name, within a directory defined by `push_mods`. This helper accepts any R object, including a data frame. Use [here_save_arrow()] when Parquet is the appropriate representation for rectangular tabular data. This function uses the `here` package to construct the path, ensuring that file paths are built in a consistent and platform-independent manner.
Arguments
- df
R object to be saved.
- name
Character string specifying the base name of the file. The ".rds" extension will be automatically appended to this name.
- dir_path
Character string specifying the directory path where the file will be saved. If NULL (default), uses `push_mods`.
- compress
Logical or character string specifying the type of compression to use. See `?saveRDS` for details. Default is TRUE.
- quiet
Logical. If TRUE, suppresses console output. Default is FALSE.