The easiest is to have your config file contain valid R code, then you can simply run source() to execute it. For example with a file that looks like that:
# Indicate csv file
input_source = "/path/to/file.csv"
if you source() it you will have a variable input_source created in R.
Otherwise, the {config} package was created exactly for this purpose, importing values from a config.yml file.