If you write a lot of R code to run as command line scripts then look at
Dirk E's "littler":
$ r --help
Usage: r [options] [-|file]
Launch GNU R to execute the R commands supplied in the specified file, or
from stdin if '-' is used. Suitable for so-called shebang '#!/'-line
scripts.
Options:
Yes I'm using R 3.4.4 on Ubuntu 18.04. I doubt the Windows version would
make use of a bash script.
I'm all for a more consistent interface. It puzzles me that a shell script
is used at all since that does not seem portable, especially for Windows
users.
To my surprise I discovered the R that's ca
In my humble personal opinion, I try to avoid bash scripts longer than a
couple lines because I find the syntax so obtuse and unintuitive it's
difficult to maintain and write less buggy code. But that is mostly a
reflection of my personal inexperience.
I think the only time a bash script is really
On 30/06/2019 8:08 p.m., Abby Spurdle wrote:
In that case, I was wrong.
And I must apologize...
In saying that, good to see Windows out performing Linux on the command
line...
That's going to set the bees abuzz...
__
R-devel@r-project.org mailing li
In that case, I was wrong.
And I must apologize...
In saying that, good to see Windows out performing Linux on the command
line...
On Mon, Jul 1, 2019 at 11:30 AM Gábor Csárdi wrote:
>
> For the record, this is Linux R-devel:
>
> root@4bef68c16864:~# R CMD
> /opt/R-devel/lib/R/bin/Rcmd: 60: shi
For the record, this is Linux R-devel:
root@4bef68c16864:~# R CMD
/opt/R-devel/lib/R/bin/Rcmd: 60: shift: can't shift that many
root@4bef68c16864:~# R CMD -h
/opt/R-devel/lib/R/bin/Rcmd: 62: exec: -h: not found
root@4bef68c16864:~# R CMD --help
/opt/R-devel/lib/R/bin/Rcmd: 62: exec: --help: not fo
> First time posting in the R mailing lists so hopefully this works well.
> I noticed when I type `R CMD` I get this unhelpful message:
> /usr/lib/R/bin/Rcmd: 60: shift: can't shift that many
I wasn't able to reproduce this.
Maybe it's a Linux thing.
But then, I suspect you've omitted some of your
Hello everyone,
First time posting in the R mailing lists so hopefully this works well.
I noticed when I type `R CMD` I get this unhelpful message:
/usr/lib/R/bin/Rcmd: 60: shift: can't shift that many
This probably comes from the file Rcmd.in. This should be easily fixed by
checking $#.
I also