looks_rtf {striprtf}R Documentation

Test if a file looks like an RTF

Description

Validate if a file looks like an RTF. The test should be seen as a minimal requirement; If failed, the file is highly likely that the file is invalid, while passed, there is still possibility that the file does not follw the rule of RTF files.

Usage

looks_rtf(con, n = 1000)

Arguments

con

A connection object or string of file name

n

Integer that specifies the length of contents to be tested. If smaller than 10, forced to 10.

Value

Logical.


[Package striprtf version 0.6.0 Index]