rig icon indicating copy to clipboard operation
rig copied to clipboard

[feature request] create versioned Rscript symlinks

Open achubaty opened this issue 2 years ago • 14 comments

I was able to track things down easily enough and set things up manually, but it would be nice if running rig system make-links also created the corresponding Rscript links.

## figuring out where Rscript might live for R 4.2.3
$ ls -l `which R-4.2.3`
lrwxrwxrwx 1 root root 18 Sep  7 12:27 /usr/local/bin/R-4.2.3 -> /opt/R/4.2.3/bin/R
$ ls -l /opt/R/4.2.3/bin
total 48
-rwxr-xr-x 1 root root  9030 Aug  3 19:29 R
-rwxr-xr-x 1 root root 35688 Aug  3 19:29 Rscript

## create the symlink
$ sudo ln -s /opt/R/4.2.3/bin/Rscript /usr/local/bin/Rscript-4.2.3

## test it works
$ Rscript-4.2.3 -e 'getRversion()'
[1] ‘4.2.3’

achubaty avatar Sep 16 '23 03:09 achubaty

Good idea.

gaborcsardi avatar Oct 31 '23 21:10 gaborcsardi

Maybe in a similar vein (or should this be a separate ticket?), it would also be great if rig run had a --script argument (or similar) to run RScript instead of R.

klmr avatar Nov 01 '23 09:11 klmr

@klmr Yes, please open a separate issue. Thanks!

gaborcsardi avatar Nov 01 '23 09:11 gaborcsardi

Done. See #199.

klmr avatar Nov 01 '23 09:11 klmr