Relative filenames are made absolute. Backslashes as path separators are replaced by forward slashes (as commonly seen on Windows).

localFileToURI(local_filename, must_exist = TRUE)

Arguments

local_filename

Path to a file (can be relative to current getwd(); or absolute)

must_exist

Require the file to exist

Value

A URI starting with "file:///" followed by an absolute path