MazamaCoreUtils0.5.3 package

Utility Functions for Production R Code

APIKeys

API keys for data services.

createLocationID

Create one or more unique locationIDs

createLocationMask

Create a mask of valid locations

dateRange

Create a POSIXct date range

dateSequence

Create a POSIXct date sequence

flog.appender

Manage appenders for loggers

flog.layout

Manage logger layouts

flog.logger

Manage loggers

getAPIKey

Get API key

html_getLinks

Find all links in an html page

html_getTables

Find all tables in an html page

initializeLogging

Initialize standard log files

lintFunctionArgs

Lint a source file's function arguments

loadDataFile

Load R data from URL or local file

logger.debug

Python-style logging statements

logger.error

Python-style logging statements

logger.fatal

Python-style logging statements

logger.info

Python-style logging statements

logger.isInitialized

Check for initialization of loggers

logger.setLevel

Set console log level

logger.setup

Set up python-style logging

logger.trace

Python-style logging statements

logger.warn

Python-style logging statements

logLevels

Log levels

manageCache

Manage the size of a cache

MazamaCoreUtils-package

MazamaCoreUtils: Utility Functions for Production R Code

packageCheck

Run package checks

parseDatetime

Parse datetime strings

pipe

Pipe operator

setAPIKey

Set APIKey

setIfNull

Set a variable to a default value if it is NULL

showAPIKeys

Show API keys

stopIfNull

Stop if an object is NULL

stopOnError

Error message generator

tidyeval-data

Data pronoun for tidy evaluation

timeRange

Create a POSIXct time range

timeStamp

Character representation of a POSIXct

timezoneLintRules

Rules for timezone linting.

validateLonLat

Validate longitude and latitude values

validateLonsLats

Validate longitude and latitude vectors

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.

  • Maintainer: Jonathan Callahan
  • License: GPL-3
  • Last published: 2024-12-03