View source: R/utils_io.R View source: R/make_versioned_dir.R
get_latest_output_date_index | R Documentation |
directories are assumed to be named in YYYY_MM_DD.VV format with sane year/month/date/version values.
directories are assumed to be named in YYYY_MM_DD.VV format with sane year/month/date/version values.
get_latest_output_date_index(dir, date)
get_latest_output_date_index(dir, date)
dir |
[chr] path to directory with versioned dirs |
date |
[chr] character in be YYYY_MM_DD format |
largest version in directory tree or 0 if there are no version OR the directory tree does not exist
[dbl] largest version in directory tree or 0 if there are no version OR the directory tree does not exist
get_latest_output_date_index("tests/testthat/fixtures/versioned-dirs/nested/1999_09_09", date = "1999_09_09") # expect 2
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.