sectxt {securitytxt}R Documentation

Parse a security.txt Web Security Policies file & create a sectxt object

Description

This function takes in a single element character vector and parses it into a sectxt object.

Usage

sectxt(x)

Arguments

x

either an atomic character vector containing a complete security.txt file or a length >1 character vector that will be concatenated into a single string or a connection object that will be passed to readLines(), the result of which will be concatenated into a single string and parsed and the connection will be closed.

References

Examples

sectxt(readLines(system.file("extdata", "security.txt", package="securitytxt")))
## Not run: 
sectxt(url(sectxt_url("https://securitytxt.org")))

## End(Not run)

[Package securitytxt version 0.1.1 Index]