Skip to contents

Presenting results of files and last modification time in a printed table using 'kable()'

Usage

present_files(repo = ".", path = "R", recursive = TRUE, untracked = TRUE)

Arguments

repo

git repository

path

Default to R folder. Use "" for the complete directory

recursive

Logical. Should the listing recurse into directories?

untracked

Logical. Should the not tracked files be included?

Value

A 'kable()' output to be included in a markdown file

Examples

repo <- fake_repo(as.package = TRUE)
cat(present_files(repo))
#> |File        |Tracked in git |Date of creation |Last modification   |  
#> |:-----------|:--------------|:----------------|:-------------------|  
#> |R/my_mean.R |No             |NA               |2024-11-20 01:15:53 |