ropensci / jqr

R interface to jq
https://docs.ropensci.org/jqr
Other
143 stars 13 forks source link

Fix flags #70

Open sckott opened 6 years ago

sckott commented 6 years ago

--stream and --seq

sckott commented 6 years ago

there's stream and seq params in jq_flags but apparently they don't work

sckott commented 6 years ago

stream eg https://github.com/stedolan/jq/wiki/FAQ#streaming-json-parser

jeroen commented 6 years ago

This is broken:

jsonlite::stream_out(ggplot2::diamonds, file('diamonds.seq'), prefix = "\u001e")
jqr::jq(file('diamonds.seq'), 'select(.price > 15000)', out = file("output.json"),
    flags = jqr::jq_flags(seq = TRUE))