is_binary: Binary check function

Description Usage Arguments Details Value Examples

View source: R/is_binary.R

Description

Adatapted from: https://stackoverflow.com/questions/16350164/native-method-in-r-to-test-if-file-is-ascii

Usage

1
is_binary(filepath, max = 1000)

Arguments

filepath

A character; path to target file

max

An integer; max number of characters in file to be checked (default 1000)

Details

This function checks if a file is binary

Value

A boolean; TRUE if file is binary and FALSE otherwise

Examples

1
## Not run: is_binary()

swood-ecology/BibScan documentation built on Sept. 24, 2021, 8:13 p.m.