Browse Source

tidy_har cleanup

master
boB Rudis 2 years ago
parent
commit
7263e6830c
No known key found for this signature in database GPG Key ID: 1D7529BE14E2BBA9
  1. 4
      R/as-data-frame-har.R
  2. 4
      README.Rmd

4
R/as-data-frame-har.R

@ -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")

4
README.Rmd

@ -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()

Loading…
Cancel
Save