1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
|
Description: Give Debian path for Rscript
Author: Dirk Eddelbuettel <edd@debian.org>
Origin: other
Forwarded: not-needed
Last-Update: 2019-03-24
--- r-cran-getopt-1.20.3.orig/exec/example.R
+++ r-cran-getopt-1.20.3/exec/example.R
@@ -1,4 +1,4 @@
-#!/path/to/Rscript
+#!/usr/bin/Rscript
library('getopt')
library('stats')
#get options, using the spec as defined by the enclosed list.
@@ -12,7 +12,7 @@ spec = matrix(c(
), byrow=TRUE, ncol=4)
opt = getopt(spec)
-# if help was asked for print a friendly message
+# if help was asked for print a friendly message
# and exit with a non-zero error code
if ( !is.null(opt$help) ) {
cat(getopt(spec, usage=TRUE))
|