# Register a parser that splits at a character and converts to number
register_parser("comma", function(delim = ",") {
function(raw, directive) {
as.numeric(strsplit(rawToChar(raw), delim)[[1]])
}
}, mime_types = "text/plain", default = FALSE)
Run the code above in your browser using DataLab