looks_rtf: Test if a file looks like an RTF

View source: R/utils.R

looks_rtfR 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.


striprtf documentation built on Aug. 10, 2023, 5:09 p.m.