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

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

# NOT RUN {
sectxt(readLines(system.file("extdata", "security.txt", package="securitytxt")))
# }# NOT RUN {
sectxt(url(sectxt_url("https://securitytxt.org")))
# }