lift_docopt.Rd 580 B

12345678910111213141516171819202122232425262728293031
  1. % Generated by roxygen2: do not edit by hand
  2. % Please edit documentation in R/lift.R
  3. \name{lift_docopt}
  4. \alias{lift_docopt}
  5. \title{lift a docopt string}
  6. \usage{
  7. lift_docopt(input)
  8. }
  9. \arguments{
  10. \item{input}{input Rmarkdown file or a function name (character)}
  11. }
  12. \value{
  13. a string used for docopt
  14. }
  15. \description{
  16. lift a docopt string used for command line
  17. }
  18. \details{
  19. parse Rmarkdown header from rabix field
  20. }
  21. \examples{
  22. fl = system.file("examples/runif.Rmd", package = "liftr")
  23. opts = lift_docopt(fl)
  24. \dontrun{
  25. require(docopt)
  26. docopt(opts)
  27. docopt(lift_docopt("mean.default"))
  28. }
  29. }