This uses sprintf to construct the URL with the version number as the first argument.

build_cf_variables_table_url(version,
  url_format_string = "http://cfconventions.org/Data/cf-standard-names/%d/src/src-cf-standard-name-table.xml")

Arguments

version

CF variables table version number (integer/numeric)

url_format_string

A format string passed to sprintf. This should contain the entire target URL with the version number replaced by "%d", and no other string substitutions.

Value

Complete URL, as a string