ParmOff: Powerful Parameter Passing2 months ago
Overview | 1 The basics | 1.1 Dropping extra arguments automatically | 1.2 Named vector vs. named list | 1.3 Mixing .args and ... | 2 Selecting and removing arguments | 2.1 .use_args — allowlist | 2.2 .rem_args — blocklist | 2.3 Combining both | 3 Stripping name prefixes / suffixes | 4 Log-transformed parameters (.logged) | 5 Bounding parameters (.lower, .upper) | 5.1 .bound_raw = TRUE (default) — bounds in log₁₀ space | 5.2 .bound_raw = FALSE — bounds in real space | 5.3 The underlying ParmLim* helpers | 6 Log/unlog helpers (ParmLog / ParmUnLog) | 7 Functional argument constraints | 8 Real-world example: fitting a Normal distribution with optim | 9 Complex example: multi-component galaxy surface-brightness fitting | 10 Using .return = 'args' for debugging | 11 Verbose debugging (.verbose) | When is verbose useful? | 12 Performance note | 13 Quick-reference table
