Nothing
#' Determine if Rstudio completion 2025+ is running
#'
#' @return boolean, is Rstudio completion 2025+ running
#' @export
#' @keywords internal
#' @author Matthew L. Fidler
#' @examples
#' # Determines if rstudio is running completion
#' .rstudioComplete()
.rstudioComplete <- function() {
## sys.calls() is expensive; autocomplete can only fire in interactive sessions
if (!interactive()) return(FALSE)
.sc <- try(sys.calls(), silent=TRUE)
if (inherits(.sc, "try-error")) {
return(FALSE)
}
.sc <- try(.sc[[1]], silent=TRUE)
if (inherits(.sc, "try-error")) {
return(FALSE)
}
.sc <- try(.sc[[1]], silent=TRUE)
if (inherits(.sc, "try-error")) {
return(FALSE)
}
identical(quote(`.rs.rpc.get_completions`), .sc)
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.