Search
Arguments
- query
An object of class
HALQuery(typically returned byhal_query()).- ...
Currently not used.
- path
A
characterstring giving the API name (defaults to "search").- instance
A
characterstring giving the HAL portal name.- limit
An
integergiving the maximum number of results. According to HAL policy, it cannot exceed 10000.- start
An
integerspecifying an absolute offset in the complete sorted list of matches to be used as the beginning of the current page. Only used ifcursorisFALSE.- cursor
A
logicalscalar: should a cursor be used for the pagination of results? IfTRUE, thesortparameter of the query will set to "docid asc".- max_requests
An
integerspecifying the maximum number of requests to perform. UseInfto perform all requests (seehttr2::req_perform_iterative()). Only used ifcursorisTRUE.- on_error
A
characterstring specifying what should happen if a request fails (seehttr2::req_perform_iterative()). Only used ifcursorisTRUE.- progress
A
logicalscalar: should a progress bar for the request be printed?- verbose
A
logicalscalar: should extra information be reported?
Value
A list of class HALSearch.
See also
Other search tools:
hal_count(),
hal_download()
Examples
if (FALSE) { # \dontrun{
## Simple search
topic <- list("archéologie", "Celtes", "France") # Combined with AND
## Get the first ten results
hal_query(topic) |>
hal_search(limit = 10) |>
as.data.frame()
## Get all results
hal_query(topic) |>
hal_search(limit = 30, cursor = TRUE) |>
as.data.frame()
## Get a list of archaeological journals
topic <- c("archéologie", "archaeology", "archäologie") # Combined with OR
hal_query(topic) |>
hal_select("title_s", "issn_s") |>
hal_filter("" %TO% "*" %IN% "issn_s") |>
hal_sort("title_s") |>
hal_search(path = "ref", instance = "journal") |>
as.data.frame()
## Get a list of archaeological laboratories
## (only joint laboratories of the CNRS and a French university)
topic <- list("archéologie" %IN% "text", "UMR" %IN% "code_t")
hal_query(topic) |>
hal_select("name_s", "acronym_s", "code_s") |>
hal_filter("VALID" %IN% "valid_s") |>
hal_sort("acronym_s", decreasing = TRUE) |>
hal_search(path = "ref", instance = "structure", limit = 15) |>
as.data.frame()
} # }