R/aws_version.R

#' AWS CLI version
#'
#' This function provides the version of AWS CLI installed. A message
#' to use \code{aws_cli_install()} will be exhibit if the AWS CLI
#' was not found.
#'
#' @export
aws_version <- function(){

  tryCatch(system("aws --version", intern = TRUE),
           error = function(cond){
             message("AWS CLI is not installed. Use aws_cli_install()")
           }
  )
}

Try the raws.profile package in your browser

Any scripts or data that you put into this service are public.

raws.profile documentation built on May 2, 2019, 8:16 a.m.