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.

splash_private_mode.Rd 1.0KB

123456789101112131415161718192021222324252627282930313233343536
  1. % Generated by roxygen2: do not edit by hand
  2. % Please edit documentation in R/dsl.R
  3. \name{splash_private_mode}
  4. \alias{splash_private_mode}
  5. \title{Enable or disable execution of JavaSript code embedded in the page.}
  6. \usage{
  7. splash_private_mode(splash_obj, enable = FALSE)
  8. }
  9. \arguments{
  10. \item{splash_obj}{splashr object}
  11. \item{enable}{logical}
  12. }
  13. \description{
  14. Private mode is enabled by default unless you pass flag \code{--disable-private-mode}
  15. at Splash (server) startup. Note that if you disable private mode browsing data such
  16. as cookies or items kept in local storage may persist between requests.
  17. }
  18. \examples{
  19. \dontrun{
  20. splash_local \%>\%
  21. splash_response_body(TRUE) \%>\%
  22. splash_private_mode(TRUE) \%>\%
  23. splash_user_agent(ua_macos_chrome) \%>\%
  24. splash_go("https://rud.is/b") \%>\%
  25. splash_wait(2) \%>\%
  26. splash_har() -> rud_har
  27. }
  28. }
  29. \seealso{
  30. Other splash_dsl_attributes: \code{\link{splash_enable_javascript}},
  31. \code{\link{splash_images}},
  32. \code{\link{splash_plugins}},
  33. \code{\link{splash_response_body}}
  34. }
  35. \concept{splash_dsl_attributes}