looks_rtf: Test if a file looks like an RTF

Description Usage Arguments Value

View source: R/utils.R

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

1
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 May 1, 2019, 9:21 p.m.