Based on today.

this_year()

Value

numeric value of the year.

Examples

 this_year() 
#> [1] 2022