summaryrefslogtreecommitdiff
path: root/homebrew/r/.make.sh-auto
diff options
context:
space:
mode:
Diffstat (limited to 'homebrew/r/.make.sh-auto')
-rw-r--r--homebrew/r/.make.sh-auto6
1 files changed, 6 insertions, 0 deletions
diff --git a/homebrew/r/.make.sh-auto b/homebrew/r/.make.sh-auto
new file mode 100644
index 000000000..97140de57
--- /dev/null
+++ b/homebrew/r/.make.sh-auto
@@ -0,0 +1,6 @@
+pkg:setup
+short_version =
+`#{bin}/Rscript -e 'cat(as.character(getRversion()[1,1:2]))'`.strip
+site_library = HOMEBREW_PREFIX/"lib/R/#{short_version}/site-library"
+site_library.mkpath
+ln_s site_library, lib/"R/site-library"