Onepunch-class.Rd 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. % Generated by roxygen2: do not edit by hand
  2. % Please edit documentation in R/Onepunch-class.R
  3. \docType{class}
  4. \name{Onepunch-class}
  5. \alias{Onepunch}
  6. \alias{Onepunch-class}
  7. \title{Creat a Onepunch object}
  8. \arguments{
  9. \item{input}{input Input (R Markdown or Shiny R markdown) file or shiny app folder.}
  10. \item{output_dir}{output_dir Directory to output \code{Dockerfile}.}
  11. \item{container}{container name}
  12. \item{image}{image name}
  13. \item{tag}{Docker image name to build, sent as docker argument \code{-t}.
  14. If not specified, it will use the same name as the input file.}
  15. \item{prebuild}{prebuild a command line string to call before docker build}
  16. \item{build_args}{build_args A character string specifying additional
  17. \code{docker build} arguments. For example,
  18. \code{--pull=true -m="1024m" --memory-swap="-1"}.}
  19. \item{liftr_template}{Rmarkdown template used to generate Dockerfile.}
  20. \item{dockerfile}{Dockerfile path.}
  21. \item{cache}{default TRUE, if FALSE, build with --no-cache=true}
  22. \item{rm}{efault FALSE, if TRUE build with --rm}
  23. \item{clean}{clean all container or not}
  24. \item{type}{"shinyapp" or "shinydoc" or "rmd"}
  25. \item{browseURL}{logical, default FALSE, to open browser automatically or not
  26. for shiny}
  27. \item{shiny_run}{how to launch shiny from command line}
  28. \item{url}{returned URL for browsing.}
  29. }
  30. \value{
  31. Onepunch object
  32. }
  33. \description{
  34. Onepunch object used for rendering
  35. }
  36. \section{Methods}{
  37. \describe{
  38. \item{\code{deploy(script = NULL, ...)}}{deploy inside container}
  39. }}
  40. \examples{
  41. \dontrun{
  42. o = Onepunch("~/liftr_docker/ShinyDoc.Rmd")
  43. o$punch()
  44. o$clean()
  45. }
  46. }