Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dcomtois/pathToClip
RStudio Addin -- Copy File Path to Clipboard
https://github.com/dcomtois/pathToClip
Last synced: 9 days ago
JSON representation
RStudio Addin -- Copy File Path to Clipboard
- Host: GitHub
- URL: https://github.com/dcomtois/pathToClip
- Owner: dcomtois
- Created: 2020-01-01T17:51:56.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-07-21T01:43:14.000Z (over 4 years ago)
- Last Synced: 2024-08-13T07:15:13.179Z (4 months ago)
- Language: R
- Size: 850 KB
- Stars: 6
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- jimsghstars - dcomtois/pathToClip - RStudio Addin -- Copy File Path to Clipboard (R)
README
### Path To Clipboard (RStudio Addin)
This `pathToClip` addin allows you to store the active document's path to the clipboard.
While many editors have this feature built-in, RStudio doesn't (at least not yet).
**On OS X and Linux**, it uses the [clipr](https://CRAN.R-project.org/package=clipr) package, which in turn relies on either "xclip" or "xsel", small utilities that can be installed in just a few seconds. See [here](https://linoxide.com/linux-how-to/copy-paste-commands-output-xclip-linux/), for Linux distro-specific instructions.
**On Windows**, no additional software is required.
### Installation
It can be installed via ['addinslist'](https://github.com/daattali/addinslist), or using 'devtools' or 'remotes':
```r
remotes::install_github("dcomtois/pathToClip")
```### Shortcut suggestion
As with any other addin, you can assign a keyboard shortcut to it.
I like to use `< Ctrl + Alt + C >`, since it's easy to remember and it's not pre-assigned (see animated demo if needed).
### Simplified version
If you don't like having 3 entries in your Addins menu and need only the platform-specific path separator, install version 0.1.0:
```r
remotes::install_github("dcomtois/pathToClip", ref="0-1-0")
```### Demo
![Gif Demo](inst/media/pathToClip_demo.gif)