Skip to contents

Reads a table of the history from its CSV file in dir, with the columns and the types of the table.

Usage

read_table(dir, name)

Arguments

dir

The folder of the history.

name

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

Value

A data frame, without rows when the file does not exist.

Examples

head(rghcard:::read_table(system.file("extdata", "example", package = "rghcard"), "views"))
#>         repo       date count uniques
#> 1 tidysurvey 2026-11-03    18      10
#> 2 tidysurvey 2026-11-04    11       6
#> 3 tidysurvey 2026-11-05     8       5
#> 4 tidysurvey 2026-11-06    21       9
#> 5 tidysurvey 2026-11-07    10       6
#> 6 tidysurvey 2026-11-08     4       3