Determine packages required by objects
# S3 method for model_spec required_pkgs(x, infra = TRUE, ...)# S3 method for workflow required_pkgs(x, infra = TRUE, ...)
# S3 method for workflow required_pkgs(x, infra = TRUE, ...)
An object.
A character string.