You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
removes checks for stringsAsFactors option in quick_df()
improves functionality of note
removes jordan.note.fun option for printing -- this was too complicated and doesn't seem to work too well without too many adjustments
note<- now appends the class noted to the object so that a print.noted method is dispatched so the note will be printed when called
print.note note defaults to a colorful message called with cat()
Startup related functions moved to jordanExtra; these were a bit wild, dynamic, and not well tested. The .Rprofile template also exists in the separate package.
Improvements
match_param() now reports the value passed to param on failure
improvements to handlers
adds has_message() and get_message()
internal rework of catch() for catching errors, messages, and warnings
has_*() now returns the result in the result attribute
print.has_catch() will hide attributes in print
improvements/updates to todos()
allows text filtering by passing arguments to grep()
adds new print method for todos_df for viewing tasks
the result of todos() still has class data.frame but will now also have class todos_df
the print.todos_df() method should be make more sense for task management
str_slice_by_word() no longer has a leading " " for each element after the first (this was not the intention of the split)
is_file() and is_dir() now returns and error when passed NULL or a vector of length 0
switch_params() now accepts a vector for x
... examples updated
adds param to change default column name from counts.data.frame() and props.data.frame()
print() method called from todos() has a new format to group together multiple items found in a single file
New features
adds print_c() to print a vector into a c() "string"
adds diff_time functions
functions include diff_time() along with shortcuts for specific methods: diff_time_secs(), diff_time_days(), diff_time_years(), and others (see ?jordan::diff_time)
these are much like the base::difftime() but...
have more methods/units for computing differences, which may need to be the case for when a unit of time has to be standardized (e.g., 1 year needs to be 365 days, or 1 month needs to be 30 days)
are class diff_time and numeric
have a slightly different print method (will note appropriately how units of time are measures)
can account for timezone differences (must be set with a the tza and tzb parameters)
adds sort_by()
adds NA assignments:
NA_at() for position assignments
NA_if() for logical/conditional assignments
NA_in() for inclusive matching assignments
NA_out() for exclusive matching assignments
adds functions for sourcing scripts into environments for later use (rscript(), save_source(), and source_to_env())
adds switch_case() to return a values based on a left hand statement
returning TRUE and switch_in_case() for evaluating x%in% left hand side
these functions are much like dplyr::case_when() but for specific cases
adds function checkOptions()
adds recode_by() and recode_only() for a simple implementations of recoding elements in a vector