Skip to contents

Writes a table of the history to its CSV file in dir, in UTF-8 and without row names.

Usage

write_table(df, dir, name)

Arguments

df

The table, a data frame.

dir

The folder of the history.

name

The name of a table of the history, such as "repos" or "views".

Value

NULL, invisibly: it is called for the file it writes.

Examples

rghcard:::write_table(rghcard:::empty_table("views"), tempdir(), "views")
readLines(file.path(tempdir(), "views.csv"))
#> [1] "\"repo\",\"date\",\"count\",\"uniques\""