Learn R Programming

valdr (version 1.0.1)

.onLoad: Package load hook for VALD API credentials

Description

.onLoad() initialises the internal package environment and attempts to load previously saved VALD API credentials and configuration.

Usage

.onLoad(libname, pkgname)

Arguments

libname

The name of the package library (automatically provided)

pkgname

The name of the package (automatically provided)

Details

If a configuration file exists, this function tries to load the stored credentials. It defers messaging until .onAttach() to comply with CRAN policies.