writeHAR: Write HAR object to file

Description Usage Arguments Examples

View source: R/export.R

Description

Write HAR object to file

Usage

1

Arguments

har

A parsed har object output from readHAR

file

A string indicating the file name to write the HAR data to.

force

If the file exists overwrite it. Defaults to TRUE

...

addtional arguments

Examples

1
2
3
4
5
6
7
8
9
## Not run: 
har1 <- readHAR(system.file(package = "HARtools",
                           "exdata", "google.com.har"))
harFile <- tempfile(fileext = ".har")
writeHAR(har1, harFile)
har2 <- readHAR(harFile)
identical(har1, har2)

## End(Not run)

Example output

[1] TRUE

HARtools documentation built on May 1, 2019, 10:56 p.m.