R/bq-parse.R

Defines functions f vs v bq_parse_single

bq_parse_single <- function(value, type, ...) {
  field <- bq_field("", type, ...)
  field_j <- jsonlite::toJSON(as_json(field))
  value_j <- jsonlite::toJSON(value, auto_unbox = TRUE)

  bq_field_init(field_j, value_j)
}

v <- function(x) list(v = x)
vs <- function(...) lapply(list(...), v)
f <- function(...) list(f = list(...))

Try the bigrquery package in your browser

Any scripts or data that you put into this service are public.

bigrquery documentation built on May 29, 2024, 4:08 a.m.