HARtools (version 0.0.5)

writeHAR: Write HAR object to file

Description

Write HAR object to file

Usage

writeHAR(har, file, force = TRUE, ...)

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

Run this code
## 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)

Run the code above in your browser using DataCamp Workspace