#' Find executable
#'
#' @param exe
#' @param interactive
#'
#' @return
#' @export
#'
#' @examples
.findExecutable <- function(exe, interactive=TRUE) {
path <- Sys.which(exe)
if(all(path=="")) {
if(interactive) stop("Executable for ", paste(exe, collapse=" or "), " not found! Please make sure that the software is correctly installed and, if necessary, path variables are set.", call.=FALSE)
return(character(0))
}
path[which(path!="")[1]]
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.