localFileToURI function

Convert a local filename, e.g. "./myData/test.mzML" to a proper URI (e.g. "file:///user/bielow/myData/test.mzML")

Convert a local filename, e.g. "./myData/test.mzML" to a proper URI (e.g. "file:///user/bielow/myData/test.mzML")

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

Returns

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

  • Maintainer: Chris Bielow
  • License: MIT + file LICENSE
  • Last published: 2025-03-23