Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

convSlashes

Convert Slashes from UNIX to DOS


Description

Convert slashes in a string from / to \\ if the operating system is windows. Do the reverse if the OS is unix.

Usage

convSlashes(expr, os=.Platform$OS.type, addQuotes=FALSE)

Arguments

expr

String value (usually a system pathway).

os

operating system (either "windows" or "unix").

addQuotes

logical: if TRUE, enclose the string expression in escaped double quotation marks.

Value

Returns the input string modified to have the appropriate slashes for the specified operating system.

Author(s)

Rowan Haigh, Pacific Biological Station, Fisheries and Oceans Canada, Nanaimo BC


PBSmodelling

GUI Tools Made Easy: Interact with Models and Explore Data

v2.68.8
GPL (>= 2)
Authors
Jon T. Schnute [aut], Alex Couture-Beil [aut], Rowan Haigh [aut, cre], Nicholas Boers [ctb], Anisa Egeli [ctb], A. R. Kronlund [ctb], Steve Martell [ctb], Norm Olsen [ctb]
Initial release
2019-03-12

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.