localFileToURI: Convert a local filename, e.g. "./myData/test.mzML" to a...

View source: R/misc.R

localFileToURIR Documentation

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

Description

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

Usage

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


rmzqc documentation built on May 29, 2024, 12:06 p.m.