| .expose_dist_fns | R Documentation |
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.
.expose_dist_fns(pkg, r_name, envir = parent.frame())
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). |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.