Tools to Work with the 'Splash' JavaScript Rendering Service in R
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
670B

  1. % Generated by roxygen2: do not edit by hand
  2. % Please edit documentation in R/dsl.r
  3. \name{splash_png}
  4. \alias{splash_png}
  5. \title{Return a screenshot of a current page in PNG format.}
  6. \usage{
  7. splash_png(splash_obj)
  8. }
  9. \arguments{
  10. \item{splash_obj}{splashr object}
  11. }
  12. \value{
  13. a \link{magick} image object
  14. }
  15. \description{
  16. Similar to \code{\link[=render_png]{render_png()}} but used in a script context. Should be the LAST element in
  17. a DSL script chain as this will execute the script and return the PNG content
  18. }
  19. \examples{
  20. \dontrun{
  21. splash_local \%>\%
  22. splash_user_agent(ua_macos_chrome) \%>\%
  23. splash_go("https://rud.is/b") \%>\%
  24. splash_wait(2) \%>\%
  25. splash_png()
  26. }
  27. }