Description Usage Arguments Value Examples
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.
1 |
clipboard |
A string copied to your clipboard |
A string written to your clipboard. No explicit output.
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()
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.