<kbd>Shift</kbd> + Right-click in the Windows file Explorer allows you to copy a file path, but it has backslashes. With this function, you get the forward slash version, so it can be used inside your R code.

path_fix(path)

Arguments

path

Path to process. If missing, the path is read from the clipboard.

Value

The fixed path, invisibly.