Skip to contents

This function writes an object of the class types to a text file. Each type is written to a separate line. The file encoding that is used is "UTF-8".

Usage

write_types(x, file, ...)

Arguments

x

Object of class types.

file

Name of the output file

...

Additional arguments (not implemented).

Value

Invisibly, x.

See also

Examples

.old_wd <- setwd(tempdir())
types <- as_types(c("first", "second", "third"))
write_types(types, "file_with_types.txt")
types_2 <- read_types("file_with_types.txt")
setwd(.old_wd)