Detect the encoding of a text file. This function is a
wrapper around guess_encoding from
the readr package, returning the best candidate
as a character string.
readr must be installed (it is listed in Suggests).
If it is not available, the function stops with an informative
message.
Usage
peek_guess_encoding(path)
Value
a character string giving the most likely encoding.