-
Notifications
You must be signed in to change notification settings - Fork 39
Closed
Labels
bugan unexpected problem or unintended behavioran unexpected problem or unintended behavior
Description
Hello!
Using the current CRAN version, I wanted to use as.double for integer handler, and got this strange behavior:
yml = readLines("dev/yaml/github.yaml", warn = FALSE) #GitHub's OA spec
r = yaml::yaml.load(yml, handlers = list(int = as.double))
Warning messages:
#> 1: In yaml::yaml.load(yml, handlers = list(int = as.double)) :
#> Your handler for type 'int' is not a function; using default
But this works no problem:
r = yaml::yaml.load(yml, handlers = list(int = function(x) as.double(x)))
Handlers of type builtin should be accepted I think, though the workaround is quite painless.
Metadata
Metadata
Assignees
Labels
bugan unexpected problem or unintended behavioran unexpected problem or unintended behavior