Merge branch '13219-arv-cwl-schema-fix'
authorLucas Di Pentima <ldipentima@veritasgenetics.com>
Thu, 5 Jul 2018 19:31:46 +0000 (16:31 -0300)
committerLucas Di Pentima <ldipentima@veritasgenetics.com>
Thu, 5 Jul 2018 19:31:46 +0000 (16:31 -0300)
Refs #13219

Arvados-DCO-1.1-Signed-off-by: Lucas Di Pentima <ldipentima@veritasgenetics.com>

sdk/R/R/zzz.R [new file with mode: 0644]
sdk/R/README.Rmd

diff --git a/sdk/R/R/zzz.R b/sdk/R/R/zzz.R
new file mode 100644 (file)
index 0000000..c98f803
--- /dev/null
@@ -0,0 +1,10 @@
+.onLoad <- function(libName, pkgName)
+{
+    minAllowedRVersion <- "3.3.0"
+    currentRVersion <- getRversion()
+
+    if(currentRVersion < minAllowedRVersion)
+        print(paste0("Minimum R version required to run ", pkgName, " is ",
+                     minAllowedRVersion, ". Your current version is ",
+                     toString(currentRVersion), ". Please update R and try again."))
+}
index dcfa2186e9edba13493919c6e4eb192efa03c544..be34b2fdb1dabd3531ca74e696a8240528418520 100644 (file)
@@ -31,6 +31,8 @@ On Debian, this is:
 apt-get install build-essential libxml2-dev libssl-dev libcurl4-gnutls-dev
 ```
 
+Minimum R version required to run ArvadosR is 3.3.0.
+
 
 ### Usage