Package: MazamaCoreUtils 0.5.2

Jonathan Callahan

MazamaCoreUtils: Utility Functions for Production R Code

A suite of utility functions providing functionality commonly needed for production level projects such as logging, error handling, cache management and date-time parsing. Functions for date-time parsing and formatting require that time zones be specified explicitly, avoiding a common source of error when working with environmental time series.

Authors:Jonathan Callahan [aut, cre], Eli Grosman [ctb], Spencer Pease [ctb], Thomas Bergamaschi [ctb]

MazamaCoreUtils_0.5.2.tar.gz
MazamaCoreUtils_0.5.2.zip(r-4.5)MazamaCoreUtils_0.5.2.zip(r-4.4)MazamaCoreUtils_0.5.2.zip(r-4.3)
MazamaCoreUtils_0.5.2.tgz(r-4.4-any)MazamaCoreUtils_0.5.2.tgz(r-4.3-any)
MazamaCoreUtils_0.5.2.tar.gz(r-4.5-noble)MazamaCoreUtils_0.5.2.tar.gz(r-4.4-noble)
MazamaCoreUtils_0.5.2.tgz(r-4.4-emscripten)MazamaCoreUtils_0.5.2.tgz(r-4.3-emscripten)
MazamaCoreUtils.pdf |MazamaCoreUtils.html
MazamaCoreUtils/json (API)
NEWS

# Install 'MazamaCoreUtils' in R:
install.packages('MazamaCoreUtils', repos = c('https://mazamascience.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Bug tracker:https://github.com/mazamascience/mazamacoreutils/issues

On CRAN:

7.94 score 3 stars 5 packages 120 scripts 525 downloads 52 exports 108 dependencies

Last updated 9 months agofrom:ef8b905d3b. Checks:OK: 7. Indexed: yes.

TargetResultDate
Doc / VignettesOKNov 03 2024
R-4.5-winOKNov 03 2024
R-4.5-linuxOKNov 03 2024
R-4.4-winOKNov 03 2024
R-4.4-macOKNov 03 2024
R-4.3-winOKNov 03 2024
R-4.3-macOKNov 03 2024

Exports:%>%checkcheck_fastcheck_fastercheck_fastestcheck_slowcheck_slowercheck_slowestcreateLocationIDcreateLocationMaskdateRangedateSequenceDEBUGERRORFATALflog.appenderflog.layoutflog.loggergetAPIKeyhtml_getLinkNameshtml_getLinkshtml_getLinkUrlshtml_getTablehtml_getTablesINFOinitializeLogginglintFunctionArgs_dirlintFunctionArgs_fileloadDataFilelogger.debuglogger.errorlogger.fatallogger.infologger.isInitializedlogger.setLevellogger.setuplogger.tracelogger.warnmanageCacheparseDatetimesetAPIKeysetIfNullshowAPIKeysstopIfNullstopOnErrortimeRangetimeStamptimezoneLintRulesTRACEvalidateLonLatvalidateLonsLatsWARN

Dependencies:askpassbase64encbrewbriobslibcachemcallrclicliprcommonmarkcpp11crayoncredentialscurldescdevtoolsdiffobjdigestdownlitdplyrellipsisevaluatefansifastmapfontawesomeformatRfsfutile.loggerfutile.optionsgenericsgeohashToolsgertghgitcredsgluehighrhtmltoolshtmlwidgetshttpuvhttrhttr2inijquerylibjsonliteknitrlambda.rlaterlifecyclelubridatemagrittrmemoisemimeminiUIopensslpillarpkgbuildpkgconfigpkgdownpkgloadpraiseprettyunitsprocessxprofvispromisespspurrrR6raggrappdirsrcmdcheckRcpprematch2remotesrlangrmarkdownroxygen2rprojrootrstudioapirversionsrvestsassselectrsessioninfoshinysourcetoolsstringistringrsyssystemfontstestthattextshapingtibbletidyselecttimechangetinytexurlcheckerusethisutf8vctrswaldowhiskerwithrxfunxml2xopenxtableyamlzip

Cache Management

Rendered fromcache-management.Rmdusingknitr::rmarkdownon Nov 03 2024.

Last update: 2023-10-26
Started: 2018-10-11

Date Parsing

Rendered fromdate-parsing.Rmdusingknitr::rmarkdownon Nov 03 2024.

Last update: 2023-10-26
Started: 2019-08-20

Error Handling

Rendered fromerror-handling.Rmdusingknitr::rmarkdownon Nov 03 2024.

Last update: 2022-08-10
Started: 2018-12-03

Logging

Rendered fromlogging.Rmdusingknitr::rmarkdownon Nov 03 2024.

Last update: 2021-08-17
Started: 2018-12-02

Readme and manuals

Help Manual

Help pageTopics
API keys for data services.APIKeys
Create one or more unique locationIDscreateLocationID
Create a mask of valid locationscreateLocationMask
Create a POSIXct date rangedateRange
Create a POSIXct date sequencedateSequence
Get API keygetAPIKey
Find all links in an html pagehtml_getLinkNames html_getLinks html_getLinkUrls
Find all tables in an html pagehtml_getTable html_getTables
Initialize standard log filesinitializeLogging
Lint a source file's function argumentslintFunctionArgs lintFunctionArgs_dir lintFunctionArgs_file
Load data from URL or local fileloadDataFile
Python-style logging statementslogger.debug
Python-style logging statementslogger.error
Python-style logging statementslogger.fatal
Python-style logging statementslogger.info
Check for initialization of loggerslogger.isInitialized
Set console log levellogger.setLevel
Set up python-style logginglogger.setup
Python-style logging statementslogger.trace
Python-style logging statementslogger.warn
Log levelsDEBUG ERROR FATAL INFO logLevels TRACE WARN
Manage the size of a cachemanageCache
Utility Functions for Production R CodeMazamaCoreUtils-package MazamaCoreUtils
Run package checkscheck check_fast check_faster check_fastest check_slow check_slower check_slowest packageCheck
Parse datetime stringsparseDatetime
Set APIKeysetAPIKey
Set a variable to a default value if it is NULLsetIfNull
Show API keysshowAPIKeys
Stop if an object is NULLstopIfNull
Error message generatorstopOnError
Create a POSIXct time rangetimeRange
Character representation of a POSIXcttimeStamp
Rules for timezone linting.timezoneLintRules
Validate longitude and latitude valuesvalidateLonLat
Validate longitude and latitude vectorsvalidateLonsLats