Skip to content

epiparameter doesn't respect options set before package loading #448

@Bisaloo

Description

@Bisaloo

Users may want to set their options at the start of their script / working session / in their .Rprofile. epiparameter will currently overwrite values set earlier by its own defaults.

options(epiparameter = list(print_max = 10, print_min = 5))

options("epiparameter")
#> $epiparameter
#> $epiparameter$print_max
#> [1] 10
#> 
#> $epiparameter$print_min
#> [1] 5

library(epiparameter)

options("epiparameter")
#> $epiparameter
#> $epiparameter$print_max
#> [1] 5
#> 
#> $epiparameter$print_min
#> [1] 3

Created on 2025-05-30 with reprex v2.1.1

This code probably needs getOption(default = ).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions