Skip to content

Commit

Permalink
Merge pull request rstudio#17 from kevinykuo/feature/yaml-load-eval
Browse files Browse the repository at this point in the history
Evaluate expressions in yaml without using handler function
  • Loading branch information
jjallaire authored May 1, 2018
2 parents 16eb712 + 491d65f commit c33e4d3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Authors@R: c(
person("JJ", "Allaire", role = c("aut", "cre"), email = "[email protected]"),
person(family = "RStudio, Inc.", role = "cph"))
Imports:
yaml (>= 2.1.13)
yaml (>= 2.1.19)
Suggests:
testthat,
knitr
Expand Down
2 changes: 1 addition & 1 deletion R/get.R
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ get <- function(value = NULL,

# load the yaml
config_yaml <- yaml::yaml.load_file(
file, handlers = list(expr = function(x) eval(parse(text = x)))
file, eval.expr = TRUE
)

# get the default config (required)
Expand Down

0 comments on commit c33e4d3

Please sign in to comment.