read_udf()
loads a UDF definition from a file
read_udf(file, ...)
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
if (FALSE) {
my_udf <- read_udf("my_udf.yaml")
}