dot-expose_dist_fns: Expose d/p/q functions from actuar or mc2d into a caller's...

.expose_dist_fnsR Documentation

Expose d/p/q functions from actuar or mc2d into a caller's environment

Description

fitdistrplus finds density functions via get() on the search path. When actuar/mc2d are in Imports (not Depends), their functions are invisible to fitdistrplus. Calling this inside a fitting function assigns the d/p/q functions into that function's own frame, making them visible to fitdistrplus via parent.frame() traversal.

Usage

.expose_dist_fns(pkg, r_name, envir = parent.frame())

Arguments

pkg

Package name, e.g. "actuar", "mc2d" (or "stats" -> no-op).

r_name

Distribution prefix, e.g. "llogis", "pareto", "triang".

envir

Environment to assign into (default: caller's own frame).


FitVerse documentation built on Dec. 1, 2026, 1:07 a.m.