Skip to content

Commit

Permalink
Change search_pv examples around so none takes 10 seconds or more
Browse files Browse the repository at this point in the history
  • Loading branch information
crew102 committed Jul 11, 2017
1 parent 487451c commit 5357bc2
Show file tree
Hide file tree
Showing 3 changed files with 83 additions and 31 deletions.
13 changes: 9 additions & 4 deletions R/search-pv.R
Original file line number Diff line number Diff line change
Expand Up @@ -186,15 +186,20 @@ request_apply <- function(ex_res, method, query, base_url, arg_list,
#' }
#'
#' @examples
#' search_pv(query = qry_funs$gt(patent_year = 2010))
#' search_pv(query = '{"_gt":{"patent_year":2010}}')
#'
#' search_pv(query = '{"_gt":{"patent_year":2010}}',
#' search_pv(query = qry_funs$gt(patent_year = 2010),
#' fields = get_fields("patents", c("patents", "assignees")))
#'
#' search_pv(query = qry_funs$gt(patent_year = 2010),
#' method = "POST", fields = "patent_number",
#' sort = c("patent_number" = "asc"))
#'
#' search_pv(query = qry_funs$eq(inventor_last_name = "crew"),
#' all_pages = TRUE)
#'
#' search_pv(query = qry_funs$contains(inventor_last_name = "smith"),
#' endpoint = "assignees",
#' fields = get_fields("assignees", c("assignees", "patents")))
#' endpoint = "assignees")
#'
#' search_pv(query = qry_funs$contains(inventor_last_name = "smith"),
#' config = httr::timeout(40))
Expand Down
88 changes: 65 additions & 23 deletions docs/reference/search_pv.html

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

13 changes: 9 additions & 4 deletions man/search_pv.Rd

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

0 comments on commit 5357bc2

Please sign in to comment.