write_udf() writes a udf object to a file

write_udf(x, file, ...)

Arguments

x

A udf object

file

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

...

Arguments passed on to yaml::write_yaml

fileEncoding

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

Examples

if (FALSE) { write_udf(my_udf, "my_udf.yml") }