checkInputFileEncoding: Check character encoding of input file

View source: R/Helper.R

checkInputFileEncodingR Documentation

Check character encoding of input file

Description

For its input files, CohortDiagnostics only accepts UTF-8 or ASCII character encoding. This function can be used to check whether a file meets these criteria.

Usage

checkInputFileEncoding(fileName)

Arguments

fileName

The path to the file to check

Value

Throws an error if the input file does not have the correct encoding.


OHDSI/ROhdsiWebApi documentation built on March 15, 2023, 1:23 p.m.