Skip to content

Commit

Permalink
minor documentation update
Browse files Browse the repository at this point in the history
  • Loading branch information
mtmorgan committed Mar 17, 2024
1 parent 1595185 commit 6297632
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 9 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: rjsoncons
Title: 'C++' Header-Only 'jsoncons' Library for 'JSON' Queries
Version: 1.2.0.9503
Version: 1.2.0.9504
Authors@R: c(
person(
"Martin", "Morgan", role = c("aut", "cre"),
Expand Down
3 changes: 3 additions & 0 deletions R/patch.R
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,9 @@ j_patch_from <-
#' elements or adding `auto_unbox = TRUE` to `...`. Examples
#' illustrate these different scenarios.
#'
#' @return `j_patch_op()` returns a character vector subclass that can
#' be used in `j_patch_apply()`.
#'
#' @examples
#' ## helper for constructing patch operations from R objects
#' j_patch_op(
Expand Down
12 changes: 4 additions & 8 deletions R/rquerypivot.R
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,8 @@ j_query <-
data_type = j_data_type(data), path_type = j_path_type(path)
)
{
.j_valid(
data_type, object_names, path, path_type, n_records, verbose,
as %in% c("string", "R")
)
.j_valid(data_type, object_names, path, path_type, n_records, verbose)
stopifnot(as %in% c("string", "R"))

data <- .as_json_string(data, data_type, ...)
result <- do_cpp(
Expand Down Expand Up @@ -137,10 +135,8 @@ j_pivot <-
data_type = j_data_type(data), path_type = j_path_type(path)
)
{
.j_valid(
data_type, object_names, path, path_type, n_records, verbose,
as %in% c("string", "R", "data.frame", "tibble")
)
.j_valid(data_type, object_names, path, path_type, n_records, verbose)
stopifnot(as %in% c("string", "R", "data.frame", "tibble"))

data <- .as_json_string(data, data_type, ...)
as0 <- ifelse(identical(as, "string"), "string", "R")
Expand Down
3 changes: 3 additions & 0 deletions man/patch.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 6297632

Please sign in to comment.