Skip to contents

Convenience function to change the default fiscal year start month without calling fundr_setup().

Usage

set_fy_start_month(month)

Arguments

month

Integer 1-12 indicating fiscal year start month.

Value

Invisibly returns the previous value.

Examples

# Save current setting
old_month <- getOption("fundr.fy_start_month")

# Set to October (federal fiscal year)
set_fy_start_month(10)
get_fy_start_month()
#> [1] 10

# Restore previous setting
if (!is.null(old_month)) options(fundr.fy_start_month = old_month)