you can use `export = c("none", "any", "namespace")` here and `export <- match.arg(export)` inside the function