read_udf: Read a UDF definition file

Description Usage Arguments Value Examples

View source: R/read_udf.R

Description

read_udf() loads a UDF definition from a file

Usage

1

Arguments

file

either a character string naming a file or a connection open for writing

...

Arguments passed on to yaml::read_yaml

fileEncoding

character string: if non-empty declares the encoding used on a file (not a connection) so the character data can be re-encoded. See file.

text

character string: if file is not supplied and this is, then data are read from the value of text via a text connection. Notice that a literal string can be used to include (small) data sets within R code.

error.label

a label to prepend to error messages (see Details).

Value

A udf object representing the UDF

Examples

1
2
3
4
## Not run: 
my_udf <- read_udf("my_udf.yaml")

## End(Not run)

briandconnelly/udftool documentation built on Dec. 19, 2021, 11:43 a.m.