-
Notifications
You must be signed in to change notification settings - Fork 51
Adding support for installations #788 #792
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 6 commits
4fc7cca
d0c68e5
5663ebb
cbf16fa
d213b12
2b0d916
fff86e9
5b4d86b
8c998af
3f304ff
66f504d
60f2713
3ce3dab
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
@@ -0,0 +1,105 @@ | ||||||||||||||||||||||
#' Search for installations | ||||||||||||||||||||||
#' | ||||||||||||||||||||||
#' @param query A search query string. | ||||||||||||||||||||||
#' @param type Choose from : IPT_INSTALLATION, DGIR INSTALLATION, TAPIR_INSTALLATION, | ||||||||||||||||||||||
#' BIOCASE_INSTALLATION, HTTP_INSTALLATION, SYMBIOTA_INSTALLATION, | ||||||||||||||||||||||
#' EARTHCAPE_INSTALLATION, MDT_INSTALLATION. Only accepts one value. | ||||||||||||||||||||||
#' @param identifierType Choose from : URL, LSID, HANDLER, DOI, UUID, FTP, URI, | ||||||||||||||||||||||
#' UNKNOWN, GBIF_PORTAL, GBIF_NODE, GBIF_PARTICIPANT, GRSCICOLL_ID, | ||||||||||||||||||||||
#' GRSCICOLL_URI, IH_IRN, ROR, GRID, CITES, SYMBIOTA_UUID, WIKIDATA, | ||||||||||||||||||||||
#' NCBI_BIOCOLLECTION, ISIL, CLB_DATASET_KEY. | ||||||||||||||||||||||
#' @param identifier An identifier of the type given by the identifierType | ||||||||||||||||||||||
#' parameter, for example a DOI or UUID. | ||||||||||||||||||||||
#' @param machineTagNamespace Filters for entities with a machine tag in the | ||||||||||||||||||||||
#' specified namespace. | ||||||||||||||||||||||
#' @param machineTagName Filters for entities with a machine tag with the | ||||||||||||||||||||||
#' specified name (use in combination with the machineTagNamespace parameter). | ||||||||||||||||||||||
#' @param machineTagValue Filters for entities with a machine tag with the | ||||||||||||||||||||||
#' specified value (use in combination with the machineTagNamespace and | ||||||||||||||||||||||
#' machineTagName parameters). | ||||||||||||||||||||||
#' @param modified The modified date of the dataset. Accepts ranges and | ||||||||||||||||||||||
#' a `*` can be used as a wildcard, e.g. modified=2023-04-01,`*` | ||||||||||||||||||||||
#' @param limit The maximum number of results to return. Defaults to 20. | ||||||||||||||||||||||
#' @param offset The offset of the first result to return. | ||||||||||||||||||||||
#' @param curlopts A list of curl options to pass to the request. | ||||||||||||||||||||||
#' | ||||||||||||||||||||||
#' @return A `list` | ||||||||||||||||||||||
#' | ||||||||||||||||||||||
#' @export | ||||||||||||||||||||||
#' | ||||||||||||||||||||||
#' @examples \dontrun{ | ||||||||||||||||||||||
#' instllation_search() | ||||||||||||||||||||||
jhnwllr marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||||||||||||||||||||||
#' installation_search(query="Estonia") | ||||||||||||||||||||||
#' installation_search(type="IPT_INSTALLATION") | ||||||||||||||||||||||
#' installation_search(modified="2023-04-01,*") | ||||||||||||||||||||||
#' | ||||||||||||||||||||||
#' } | ||||||||||||||||||||||
|
||||||||||||||||||||||
|
||||||||||||||||||||||
installation_search <- function( | ||||||||||||||||||||||
query = NULL, | ||||||||||||||||||||||
type = NULL, | ||||||||||||||||||||||
identifierType = NULL, | ||||||||||||||||||||||
identifier = NULL, | ||||||||||||||||||||||
machineTagNamespace = NULL, | ||||||||||||||||||||||
machineTagName = NULL, | ||||||||||||||||||||||
machineTagValue = NULL, | ||||||||||||||||||||||
modified = NULL, | ||||||||||||||||||||||
limit = 20, | ||||||||||||||||||||||
offset = NULL, | ||||||||||||||||||||||
curlopts = list() | ||||||||||||||||||||||
) { | ||||||||||||||||||||||
|
||||||||||||||||||||||
assert(query,"character") | ||||||||||||||||||||||
assert(identifierType, "character") | ||||||||||||||||||||||
assert(identifier, "character") | ||||||||||||||||||||||
assert(machineTagNamespace, "character") | ||||||||||||||||||||||
assert(machineTagName, "character") | ||||||||||||||||||||||
assert(machineTagValue, "character") | ||||||||||||||||||||||
assert(modified, "character") | ||||||||||||||||||||||
|
||||||||||||||||||||||
type_choices <- c("IPT_INSTALLATION", "DGIR INSTALLATION", | ||||||||||||||||||||||
"TAPIR_INSTALLATION", "BIOCASE_INSTALLATION", | ||||||||||||||||||||||
"HTTP_INSTALLATION", "SYMBIOTA_INSTALLATION", | ||||||||||||||||||||||
"EARTHCAPE_INSTALLATION", "MDT_INSTALLATION") | ||||||||||||||||||||||
if(is.null(type)) { type = NULL } else { type = match.arg(type, type_choices) } | ||||||||||||||||||||||
indentifierType_choices <- c("URL", "LSID", "HANDLER", "DOI", "UUID", | ||||||||||||||||||||||
"FTP", "URI", "UNKNOWN", "GBIF_PORTAL", | ||||||||||||||||||||||
"GBIF_NODE", "GBIF_PARTICIPANT", "GRSCICOLL_ID", | ||||||||||||||||||||||
"GRSCICOLL_URI", "IH_IRN", "ROR", "GRID", | ||||||||||||||||||||||
"CITES", "SYMBIOTA_UUID", "WIKIDATA", | ||||||||||||||||||||||
"NCBI_BIOCOLLECTION", "ISIL", "CLB_DATASET_KEY") | ||||||||||||||||||||||
|
||||||||||||||||||||||
|
||||||||||||||||||||||
if(is.null(identifierType)) { identifierType = NULL } else { | ||||||||||||||||||||||
identifierType = match.arg(identifierType, indentifierType_choices) | ||||||||||||||||||||||
} | ||||||||||||||||||||||
|
||||||||||||||||||||||
if (xor(is.null(identifierType), is.null(identifier))) { | ||||||||||||||||||||||
stop("Both 'identifierType' and 'indentifier' must be provided | ||||||||||||||||||||||
|
identifierType = match.arg(identifierType, indentifierType_choices) | |
} | |
if (xor(is.null(identifierType), is.null(identifier))) { | |
stop("Both 'identifierType' and 'indentifier' must be provided | |
identifierType = match.arg(identifierType, identifierType_choices) | |
} | |
if (xor(is.null(identifierType), is.null(identifier))) { | |
stop("Both 'identifierType' and 'identifier' must be provided |
Copilot uses AI. Check for mistakes.
jhnwllr marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
@@ -0,0 +1,90 @@ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
#' Get installation metadata using a installationkey | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
jhnwllr marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
jhnwllr marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
#' | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
#' @param uuid A GBIF installationKey uuid. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
#' @param limit The number of results to return. Default is 20. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
#' @param start The offset of the first result to return. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
#' @param curlopts A list of curl options to pass to the request. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
#' | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
#' @return A `tibble` or a `list`. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
#' | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
#' @examples \dontrun{ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
#' # Get all datasets for a given installation | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
#' installation_dataset(uuid="d209e552-7e6e-4840-b13c-c0596ef36e55", limit=10) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
#' installation_comment(uuid="a0e05292-3d09-4eae-9f83-02ae3516283c") | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
#' installation_contact(uuid="896898e8-c0ac-47a0-8f38-0f792fbe3343") | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
#' installation_endpoint(uuid="896898e8-c0ac-47a0-8f38-0f792fbe3343") | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
#' installation_identifier(uuid="896898e8-c0ac-47a0-8f38-0f792fbe3343") | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
#' installation_machinetag(uuid="896898e8-c0ac-47a0-8f38-0f792fbe3343") | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
#' } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
#' | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
#' @name installation_uuid_funs | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
#' @export | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
installation_dataset <- function(uuid=NULL,limit=20, start = NULL, curlopts = list()) { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
jhnwllr marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
installation_uuid_get_(uuid=uuid,endpoint="/dataset",limit=limit,start=start,curlopts,meta=TRUE) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
} | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
#' @name installation_uuid_funs | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
#' @export | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
installation_comment <- function(uuid=NULL, curlopts = list()) { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
installation_uuid_get_(uuid=uuid,endpoint="/comment",meta=FALSE) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
} | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
#' @name installation_uuid_funs | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
#' @export | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
installation_contact <- function(uuid=NULL, curlopts = list()) { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
installation_uuid_get_(uuid=uuid,endpoint="/contact",meta=FALSE) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
} | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
#' @name installation_uuid_funs | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
#' @export | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
installation_endpoint <- function(uuid=NULL, curlopts = list()) { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
installation_uuid_get_(uuid=uuid,endpoint="/endpoint",meta=FALSE) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
} | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
#' @name installation_uuid_funs | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
#' @export | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
installation_identifier <- function(uuid=NULL, curlopts = list()) { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
installation_uuid_get_(uuid=uuid,endpoint="/identifier",meta=FALSE) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
} | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
#' @name installation_uuid_funs | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
#' @export | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
installation_machinetag <- function(uuid=NULL, curlopts = list()) { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
installation_uuid_get_(uuid=uuid,endpoint="/machineTag",meta=FALSE) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
} | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
#' @name installation_uuid_funs | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
#' @export | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
installation_tag <- function(uuid=NULL, curlopts = list()) { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
installation_uuid_get_(uuid=uuid,endpoint="/tag",meta=FALSE) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Comment on lines
+30
to
+60
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The helper functions (e.g., installation_comment) call installation_uuid_get_ without passing the curlopts argument. This will lead to a missing-argument error. Please update each wrapper to include
Suggested change
Copilot uses AI. Check for mistakes. Positive FeedbackNegative Feedback |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
} | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
installation_uuid_get_ <- function(uuid=NULL,endpoint,curlopts,limit=NULL, start=NULL,meta) { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
if(!is_uuid(uuid)) stop("'uuid' should be a GBIF installationKey uuid.") | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
url <- paste0(gbif_base(),"/installation/",uuid,endpoint) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
if(!is.null(limit)) { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
args <- rgbif_compact(c(limit=limit,offset=start)) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
tt <- gbif_GET(url, args, TRUE, curlopts) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
} else { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
tt <- gbif_GET(url, args = NULL, TRUE, curlopts) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
} | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
if(meta) { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
meta <- tt[c('offset','limit','endOfRecords','count')] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
if (length(tt$results) == 0) { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
out <- NULL | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
} else { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
out <- tibble::as_tibble(tt$results) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
} | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
list(meta = data.frame(meta), data = out) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
} else { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
tibble::as_tibble(tt) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
} | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
} | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There's a typo in the example:
instllation_search()
should beinstallation_search()
.Copilot uses AI. Check for mistakes.