R/lp_job_status.R

Defines functions lp_job_status

Documented in lp_job_status

#' Leanpub Job Status
#'
#' @inheritParams lp_get_wrapper
#'
#' @note See \url{https://leanpub.com/help/api}
#'
#' @return List of the result of the \code{\link{GET}} call and
#' the content
#' @export
#'
#' @examples
#' if (lp_have_api_key()) {
#' stat = lp_job_status(slug = "neuroimagingforstatisticians",
#' nonstop = TRUE, error = FALSE)
#' }
lp_job_status = function(slug,
                         api_key = NULL,
                         secure = TRUE,
                         verbose = TRUE,
                         ...) {
  L = lp_get_wrapper(
    slug = slug,
    endpoint = "/job_status",
    api_key = api_key,
    secure = secure,
    verbose = verbose, ...)
  return(L)

}

Try the leanpubr package in your browser

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

leanpubr documentation built on May 1, 2019, 8:05 p.m.