diff --git a/R/yaml_utils.R b/R/yaml_utils.R index 42ce4520..c0a78614 100644 --- a/R/yaml_utils.R +++ b/R/yaml_utils.R @@ -28,7 +28,7 @@ yaml_quoted <- function(x) { #' date = yaml_quoted("07/04/2019"), #' output = list(pdf_document = list(keep_tex = TRUE)) #' ) -#' getFromNamespace("md_header", "teal.reporter").(yaml::as.yaml(yaml)) +#' getFromNamespace("md_header", "teal.reporter")(yaml::as.yaml(yaml)) md_header <- function(x) { paste0("---\n", x, "---\n") } diff --git a/man/md_header.Rd b/man/md_header.Rd index fec1a5a5..fc00dc4b 100644 --- a/man/md_header.Rd +++ b/man/md_header.Rd @@ -20,6 +20,6 @@ yaml <- list( date = yaml_quoted("07/04/2019"), output = list(pdf_document = list(keep_tex = TRUE)) ) -getFromNamespace("md_header", "teal.reporter").(yaml::as.yaml(yaml)) +getFromNamespace("md_header", "teal.reporter")(yaml::as.yaml(yaml)) } \keyword{internal}