Skip to contents

Reads CSVY, print YAML and fread file.

Usage

obs_read_csvy(f, n = 100, ...)

Arguments

f

path to csvy file

n

number of files to search for "—" yaml

...

extra data.table arguments

Examples

if (FALSE) { # \dontrun{
# Do not run
df <- data.frame(a = rnorm(n = 10),
                 time = Sys.time() + 1:10)

f <- paste0(tempfile(), ".csvy")
notes <- c("notes",
           "more notes")
obs_write_csvy(dt = df, notes = notes, out = f)
s <- obs_read_csvy(f)
s
# or
readLines(f)
data.table::fread(f)
} # }