rig
rig copied to clipboard
[feature request] create versioned Rscript symlinks
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’
Good idea.
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 Yes, please open a separate issue. Thanks!
Done. See #199.