Learn R Programming

voice (version 0.4.21)

write_list: Writes a list to a path

Description

Writes a list to a path

Usage

write_list(x, path)

Value

A file named `list.txt` in `path`.

Arguments

x

A list.

path

A full path to file.

Examples

Run this code
if (FALSE) {
library(voice)

pts <- list(x = cars[,1], y = cars[,2])
listFile <- paste0(tempdir(), '/list.txt')
voice::write_list(pts, listFile)
file.info(listFile)
system(paste0('head ', listFile))
}

Run the code above in your browser using DataLab