Skip to contents

The li_get_version function calculates the most recent past month's LinkedIn version date and formats it as a string in YYYYMM format. This date is used to reference LinkedIn-specific API versions or other functionalities tied to monthly updates.

Usage

li_get_version()

Value

A character string representing the version date in YYYYMM format, where YYYY is the 4-digit year, and MM is the 2-digit month.

Details

The function calculates the version date by taking the current date and rolling back to the previous month. The result is then formatted as a string in YYYYMM format using the lubridate and stringr packages.

Examples

if (FALSE) { # \dontrun{
li_get_version()

# Store the version date in a variable
li_get_version()
} # }