Commit f39957f5 authored by Jean-Marie Lepioufle's avatar Jean-Marie Lepioufle
Browse files

add write_disk()

parent ac4072ca
......@@ -8,4 +8,5 @@ export(endpoints_package)
export(endpoints_session)
export(resp_content)
export(resp_status)
export(resp_write_disk)
export(session_key)
......@@ -48,3 +48,19 @@ resp_status <- function(x){
res <- x$status_code
return(res)
}
#' resp_write_disk
#' resp_write_disk
#' @param path path
#' @param overwrite overwrite
#' @keywords alapu
#' @export
#' @examples
#' \dontrun{
#' resp_write_disk()
#' }
resp_write_disk <- function(path, overwrite){
res <- httr::write_disk(path=path, overwrite = overwrite)
return(res)
}
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/utils.R
\name{resp_write_disk}
\alias{resp_write_disk}
\title{resp_write_disk
resp_write_disk}
\usage{
resp_write_disk(path, overwrite)
}
\arguments{
\item{path}{path}
\item{overwrite}{overwrite}
}
\description{
resp_write_disk
resp_write_disk
}
\examples{
\dontrun{
resp_write_disk()
}
}
\keyword{alapu}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment