Command Line Tools

Functions for interacting with users via the command line.

cl_yes_no_action()

Ask Yes/No Questions via the console

cl_text_action()

Ask Text Questions via the Console

cl_yes_no_lgl()

Ask Yes/No Questions via the console

cl_text_input()

Ask Text Questions via the Console

Saving and Loading Objects

Functions for more easily saving and loading R (.RDS) objects with RStudio.

save_object() load_object()

Save/Load R Objects as .RDS files.

set_object_path()

Set global path option for saving/loading objects

get_object_path()

Get global path option for saving/loading objects

unset_object_path()

Unset global path option for saving/loading objects

File Functions

file_open()

Open a File in RStudio

file_new() file_new_r() file_new_stan() file_new_js() file_new_css() file_new_html() file_new_text() file_new_md() file_new_rmd()

Create a new file

file_copy()

Copy Existing Files to a new Directory

file_delete()

Delete Files

Working with Options

opt_set() opt_get() opt_ls() opt_rm() opt_rm_all()

Set, Get, and Remove (Package-Specific) Options

Strings and Identifiers

Functions for working with strings and creating unique identifiers.

extract_before()

Extract all characters in a string before a match

extract_after()

Extract all characters in a string after a match

extract_between()

Extract a portion of a string between two patterns

time_string()

Get a Character String of Seconds since January, 1970

rand_str()

Generate Random Strings

Vector Manipulations

vec_between()

Subset a vector for values within a specified range

Miscellaneous

Functions that don’t fall as easily into categories but are useful utilities for a variety of tasks.

cls_abort()

Abort Classes with Informative Message

cls_check()

Informative Class Checking

how_many()

How Many Unique Observations

get_sub_name()

Get a Substituted Name as Character for Subsetting