backslash: Replaces Copied Backslashes (\) with Forwardslashes (/)

Description Usage Arguments Value Examples

Description

This function will take a string from your clipboard and replace all of the backslashes (\) with forward slashes (/). The results are written back to your clipboard, so all you need to do is paste (CTRL + V).

I use this almost exclusively to make filepaths copied from Windows compatible with R.

Usage

1

Arguments

clipboard

A string copied to your clipboard

Value

A string written to your clipboard. No explicit output.

Examples

1
2
3
4
5
6
7
# Example Workflow
# Step 1: Navigate to the file you want in your file browser
# Step 2: Copy the file path
# Step 3: Run the backslash() function
# Step 4: Use CTRL + V

backslash()

christian-million/researchR documentation built on May 15, 2019, 12:45 p.m.