Learn R Programming

rmake (version 1.2.0)

sanitizePath: Sanitize a file path for the current operating system

Description

This function replaces forward slashes with backslashes on Windows systems, and leaves the path unchanged on Unix-like systems.

Usage

sanitizePath(path)

Value

A sanitized file path suitable for the current operating system.

Arguments

path

A character string representing the file path to be sanitized.

Author

Michal Burda