Package Summary

Summary description of package capabilities.

MazamaCoreUtils MazamaCoreUtils-package

Utility Functions for Production R Code

Time Utilities

Functions for working with datetimes

dateRange()

Create a POSIXct date range

dateSequence()

Create a POSIXct date sequence

parseDatetime()

Parse datetime strings

timeRange()

Create a POSIXct time range

timeStamp()

Character representation of a POSIXct

Location Utilities

Functions for working with geographical locations

createLocationID()

Create one or more unique locationIDs

createLocationMask()

Create a mask of valid locations

validateLonLat()

Validate longitude and latitude values

validateLonsLats()

Validate longitude and latitude vectors

Logging Utilities

Logging utilities for MazamaScience projects

initializeLogging()

Initialize standard log files

FATAL

Log levels

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

Linting Utilities

Linting utilites for internal MazamaScience development

lintFunctionArgs_file() lintFunctionArgs_dir()

Lint a source file's function arguments

timezoneLintRules

Rules for timezone linting.

Package Checking Utilities

Wrapper functions to run devtools::check() with arguments

check() check_fast() check_faster() check_fastest() check_slow() check_slower() check_slowest()

Run package checks

Working with NULL values

Convenience functions for working with NULL values

setIfNull()

Set a variable to a default value if it is NULL

stopIfNull()

Stop if an object is NULL

HTML Utilities

Functions for parsing web documents

html_getLinks() html_getLinkNames() html_getLinkUrls()

Find all links in an html page

html_getTables() html_getTable()

Find all tables in an html page

API Keys

An abstraction layer for the use of API keys

APIKeys

API keys for data services.

getAPIKey()

Get API key

setAPIKey()

Set APIKey

showAPIKeys()

Show API keys

Other Utilites

loadDataFile()

Load data from URL or local file

manageCache()

Manage the size of a cache

stopOnError()

Error message generator