-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2b00953
commit 6da7730
Showing
3 changed files
with
52 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#' Sends a ["request-query"](https://github.com/flowr-analysis/flowr/wiki/Interface#the-query-request) request | ||
#' | ||
#' @param con The connection to the server | ||
#' @param filetoken The filetoken of the file to be sliced | ||
#' (retrieved by a previous "file-analysis" request) | ||
#' @param query The query to be executed | ||
#' @param id The id of the request | ||
#' @return A list containing the id and the response | ||
#' | ||
#' @seealso [request_file_analysis()] | ||
#' @seealso [connect()] | ||
#' | ||
#' @export | ||
request_query <- function(con, filetoken, query, id = get_new_id()) { | ||
request <- list( | ||
type = "request-query", | ||
id = id, | ||
filetoken = filetoken, | ||
query = I(query) | ||
) | ||
return(send_request_handle_response(con, request)) | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.