dot-onLoad: Package startup - register default parallelisation...

.onLoadR Documentation

Package startup - register default parallelisation preferences

Description

This internal function is executed automatically when the **TesiproV** package is loaded (via 'library(TesiproV)').

Setting package-specific default options that can later be used by TesiproV functions to configure parallel execution in a controlled and CRAN-compliant way.

The function returns 'invisible(NULL)' and is **not exported**. It is intended solely for internal package initialisation.

Usage

.onLoad(libname, pkgname)

Arguments

libname

Ignored. Path to the library where the package is installed (standard argument for '.onLoad').

pkgname

Ignored. Name of the package (standard argument for '.onLoad').

Details

The function performs one step:

1. It checks whether the namespace of the package 'future' is available and aborts with a clear error message if it is missing.

By not calling 'future::plan()' during package startup, TesiproV avoids altering the user's global parallel configuration. This follows CRAN recommendations that packages should not change global execution plans on load.

Author(s)

(C) 2021-2026 K. Nille-Hauf, T. Feiri, M. Ricker, T. Lux – Hochschule Biberach (until 2022), TU Dortmund University - Chair of Structural Concrete (since 2023)

Examples

## Load the package (initialises default options)
library(TesiproV)


TesiproV documentation built on Oct. 28, 2026, 5:13 p.m.