mirror of
https://github.com/mistydemeo/tigerbrew.git
synced 2026-11-30 04:29:50 -05:00
Add bash completion to R
This is the same completion script that Debian includes in the r-base-core package. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
This commit is contained in:
1 parent
3a77bf28c0
commit
8678c0c276
1 file changed
+11
@@ -4,6 +4,13 @@ def valgrind?
|
||||
ARGV.include? '--with-valgrind'
|
||||
end
|
||||
|
||||
class RBashCompletion < Formula
|
||||
# This is the same script that Debian packages use.
|
||||
url 'http://rcompletion.googlecode.com/svn-history/r12/trunk/bash_completion/R', :using => :curl
|
||||
version 'r12'
|
||||
md5 '3c8f6cf1c07e052074ee843be00fa5d6'
|
||||
end
|
||||
|
||||
class R < Formula
|
||||
url 'http://cran.r-project.org/src/base/R-2/R-2.13.0.tar.gz'
|
||||
homepage 'http://www.R-project.org/'
|
||||
@@ -50,6 +57,10 @@ class R < Formula
|
||||
ln_s prefix+"R.framework/Resources/bin/Rscript", bin
|
||||
ln_s prefix+"R.framework/Resources/man1/R.1", man1
|
||||
ln_s prefix+"R.framework/Resources/man1/Rscript.1", man1
|
||||
|
||||
bash_dir = prefix + 'etc/bash_completion.d'
|
||||
bash_dir.mkpath
|
||||
RBashCompletion.new.brew { bash_dir.install 'R' }
|
||||
end
|
||||
|
||||
def caveats; <<-EOS.undent
|
||||
|
||||
Reference in new issue
Block a user