#'
if (FALSE) {
get_year_from_file_name(
c("path/to/weather.year1", "path/to/weather.year2")
)
# should return c(year1, year2)
get_year_from_file_name(
c("path/to/weather.year1", "path/to/weather.year3")
)
# should return c(year1, year2, year3)
}
Run the code above in your browser using DataLab