Generate file paths that end with the system's file separator, or whichever other separator suits your needs

file_path(..., fsep = .Platform$file.sep)

Arguments

...

Characters to generate the file path

fsep

The separator to use between characters and at the end of the file path