This repository has been archived by the owner on Feb 18, 2024. It is now read-only.
Releases: krlmlr/enc
Releases · krlmlr/enc
enc 0.2.2
enc 0.2.1
enc 0.2.0
enc 0.1
Initial release.
utf8
class with constructor, coercion, combination, formatting, printing, and checked updates.to_encoding()
performs deep encoding conversion of objects, including names and other attributes. Variants:to_utf8()
,to_native()
,to_latin1()
andto_alien()
.encoding()
, returns"ASCII"
for pure ASCII strings and behaves identically tobase::Encoding()
otherwise.all_utf8()
, returns a logical scalar that indicates if all elements of a character vector are UTF-8 encoded; this includes pure ASCII strings.read_lines_enc()
,try_read_lines_enc()
, andwrite_lines_enc()
for robust reading and writing of text files. Returns/accepts objects of classutf8
.transform_lines_enc()
, with robust handling if only some files could be transformed intransform_lines_enc()
. Usestry_read_lines_enc()
, therefore only warns if file is missing. Auto-detects and maintains EOL delimiter.