Browse Source

tidy_har cleanup

master
boB Rudis 8 months ago
parent
commit
7263e6830c
No known key found for this signature in database GPG Key ID: 1D7529BE14E2BBA9
2 changed files with 4 additions and 4 deletions
  1. +2
    -2
      R/as-data-frame-har.R
  2. +2
    -2
      README.Rmd

+ 2
- 2
R/as-data-frame-har.R View File

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



+ 2
- 2
README.Rmd View File

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