~hrbrmstr/splashr

7263e6830c8e741ca6e021995ef00e70fd7ad747 — hrbrmstr 5 months ago b548840 master
tidy_har cleanup
2 files changed, 4 insertions(+), 4 deletions(-)

M R/as-data-frame-har.R
M README.Rmd
M R/as-data-frame-har.R => R/as-data-frame-har.R +2 -2
@@ 77,11 77,11 @@
    resp_cookies = I(list(res_cookies)),
    resp_headers = I(list(headers)),
    resp_encoding = .x[["resonse"]][["content"]][["encoding"]] %l0% NA_character_,
    resp_content_size = as.numeric(.x[["resonse"]][["content"]][["size"]]) %l0% NA_real_,
    resp_content_size = as.numeric(.x[["response"]][["content"]][["size"]]) %l0% NA_real_,
    stringsAsFactors = FALSE
  ) -> out

  if (include_content) out$resp_content <- .x[["resonse"]][["content"]][["text"]] %l0% NA_character_
  if (include_content) out$resp_content <- .x[["response"]][["content"]][["text"]] %l0% NA_character_

  class(out) <- c("tbl_df", "tbl", "data.frame")


M README.Rmd => README.Rmd +2 -2
@@ 134,7 134,7 @@ options(width=120)

### Usage

NOTE: ALL of these examples assume Splash is running in the default configuraiton on `localhost` (i.e. started with `start_splash()` or the docker example commands) unless otherwise noted.
NOTE: ALL of these examples assume Splash is running in the default configuration on `localhost` (i.e. started with `start_splash()` or the docker example commands) unless otherwise noted.

```{r message=FALSE, warning=FALSE, error=FALSE}
library(splashr)


@@ 143,7 143,7 @@ library(rvest)
library(anytime)
library(tidyverse)

# current verison
# current version
packageVersion("splashr")

splash_active()