![]() For instance, in a Windows command shell, you can add the "wide" option to the "dir" command by typing "dir/w", yet you can run a program called "w" in a subdirectory "dir" with "dir\w". MS-DOS 2 copied the hierarchical file system from Unix and thus used the forward slash, but (possibly on the insistence of IBM) added the backslash to allow paths to be typed into the command shell while retaining compatibility with MS-DOS 1 and CP/M where the slash was the command-line option indicator. Learn the different ways to use a forward slash in a sentence with these examples and best practices. "The underlying Windows API can accept either the backslash or slash to separate directory and file components of a path, but the Microsoft convention is to use a backslash, and APIs that return paths put backslash in. The issue of a forward slash being changed to a backslash is a Microsoft PowerPoint issue, not an Articulate issue. The forward slash has many different uses in English. So the short answer: R uses both on Windows and lets you pick whichever you find easier. The important information to note from this article is this: So you can you use a forward slash whereever you would use a backward slash: 'C:/TEMP' works the same Fourth, you can have R compute the path for you and it will use use the separator: file.path ('some', 'dir'). In Windows the forward slashes and back slashes are equivalent, but many programs will accept only backward slashes, and some will only accept double backslashes (ie ComputerNameSharedFolder), especially in quoted string constants, due to the standard use of backslash as an escape character.Īlso, see the Wikipedia information about the backslash character at this URL: The Virtual Tape Server can accept both forward and backward slashes on Windows. In addition, the Java runtime environment automatically converts forward-slashes into backward-slashes on Windows. The UNC syntax is sometimes written with forward slashes. Forward-slashes do not usually cause code page translation errors.
0 Comments
Leave a Reply. |