This file contains notes about code design and conventions with the aim of making collaboration and future modifications easier.
test-XX_DESCRIPTION.R, where XX is the order they
should be run (try to test lower order functions first).clean_metadata(), clean_site_index())
users can specify existing column names, but they will then be formatted
to standard namesfile_name, pathdate, date_start, date_end, date_time, date_time_start, date_time_endaru_id, aru_type, site_idlongitude, latitudetz, t2sr, t2ssadd_sites() does allow adding and keeping extra columns (col_extra = ...)create_pattern_XXX()ARUtools-package.Rcreate_pattern_XXX() functions, or by supplying a vector of patterns to
clean_metadata() (for example). clean_metadata() (order_date) because they are two steps, extracting
the pattern and then parsing the pattern. create_pattern_time() function, they are always optional in the parsing
function (i.e. lubridate::parse_date_time(... truncated = 1)).
If necessary, they could be made optional for parsing by adding another argument
optional_sec or similar, but this may be overkill for nowrev(sort(digits)),
(or sort(digits, decreasing = TRUE)) to ensure that longer patterns can
be matched before comparing to shorter patternsquiet is an argument that is FALSE by default. If TRUE, non-essential, FYI
messages are suppressed (but not warnings, and not informative problem messages)verbose is an argument (currently only for clean_gps()) that is by default
FALSE. If TRUE, shows even more information (generally unnecessary unless
troubleshooting a specific problem)Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.