- Added a
grkmisccode style that can be used with thestylerpackage. Useuse_grk_style()to set thegrkmisccode style as the default style forstyleraddins and functions.
-
Added
use_grk_github_labels()with standard labels for use in GitHub repos. -
Renamed all package helpers based on
usethisto use the prefixuse_grk_. For example,use_grk_starter_package()replaceduse_starter_package(). -
Fixed
use_grk_gitignore()so that template is correctly found internally. -
Replaced
hide_panel_grid_minorwithpanel_gridhaving options "major", "minor", "both", or "none" intheme_moffitt(). -
Setting
plot_caption_colororpanel_border_colortoNULLintheme_moffitt()skips setting those colors. -
Remove
radixarticle option fromdoc_new().
-
A nice default R Markdown template available through RStudio new markdown file "From Template" dialogue called "Garrick Default".
-
A Moffitt color palette and Moffitt colors CSV file.
-
A Moffitt-styled xaringan presentation template, also in the "From Template" pane of RStudio's new markdown file dialogue as "Moffitt Xaringan".
-
Copy code from the console and insert in "tidy" style using the "Insert Tidy- Styled Code" RStudio addin. Breaks pipe and ggplot steps into individual lines.
-
Shorten GitHub URLs with
shorten_github_url(). -
Create a brand new package with all the bells and whistles with
use_starter_package(). -
A couple helpers to install a default
.gitignorefile withuse_gitignore()and to install a helpful git pre-commit hook withuse_git_hook_precommit(). -
Create a new project (not package) with
use_starter_project(). -
Import SAS format data files with
read_sas_format(). Import SAS data files and format files and apply labels directly to the data withread_sas_with_format(). Or apply the labels from a SAS format file usingadd_proc_format_labels(). -
Insert the relative or absolute path to the directory containing the active document with the RStudio Addins "Insert Relative Directory Path" or "Insert Absolute Directory Path".
-
New ggplot2 themes:
theme_moffitt()andtheme_grk() -
New ggplot2 scales:
scale_color_moffitt()andscale_fill_moffitt(). When given two values, both scales allow the user to pick a secondary color frommoffitt_colors(green, red, orange, light_blue, yellow, or grey (default)) to contrast the primary blue color. -
A function to help replace missing values in data frame columns:
if_na() -
A pipe-friendly logging functions:
logger() -
A pipe- and Rmd-friendly function to save ggplot objects:
ggsave_and_print(). In comparison withggsave(), the first argument is the plot object and the second argument is the filename, making this function pipe-friendly. By default, the plot is printed but not saved when used interactively. -
A function to truncate and wrap long strings:
pretty_string() -
format_pretty_string()andformat_pretty_number()return formatting functions that can be used as labellers in ggplot2 scales.