normPath: Normalize path with backslashes.

View source: R/helper_functions.R

normPathR Documentation

Normalize path with backslashes.

Description

This short-hand function normalizes the path and makes sure only forward slashes are used. Other slashes are not usable in grepl statements directly for example, the '\' is parsed to '\' before being used as regexp.

Usage

normPath(path)

Arguments

path

The path which needs to be normalized. Will make C:/PROGRA~1/R/R-33~1.1/library into C:/Program Files/R/R-3.3.1/library.


multiversion documentation built on March 22, 2022, 1:07 a.m.