File tree 2 files changed +6
-2
lines changed 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -50,7 +50,6 @@ before_install:
50
50
- tools/install.sh rdep
51
51
- tools/install.sh rinside
52
52
- sudo tools/install.sh python-dev
53
- - tools/install.sh rpython
54
53
- tools/install.sh submodules
55
54
56
55
install :
Original file line number Diff line number Diff line change @@ -74,7 +74,9 @@ function install_rpackage {
74
74
dir.create(p,recursive=TRUE);
75
75
.libPaths(p);
76
76
}
77
+ if (! "$name " %in% available.packages()[,1]) stop("$name not available on CRAN");
77
78
install.packages('$name ', method="wget");
79
+ if (! require('$name ')) stop("Failed to load $name ");
78
80
EOF
79
81
}
80
82
245
247
# try "Changing access to R lib paths" chmod 2777 /usr/local/lib/R /usr/local/lib/R/site-library
246
248
;;
247
249
-r|--rpackage)
250
+ shift
248
251
test -z " $1 " && error " usage tools/install.sh [--github] --rpackage package_name"
249
252
if $GITHUB
250
253
then
272
275
;;
273
276
rpython)
274
277
install_rpackage rjson
275
- install_rpackage rPython
278
+ echo " rPython not supported anymore"
279
+ # install_rpackage rPython
276
280
;;
277
281
rinside)
278
282
if $GITHUB
283
287
fi
284
288
;;
285
289
cuda)
290
+ shift
286
291
test -z " $1 " && error " Version number needed for cuda install"
287
292
CUDA=$1
288
293
shift
You can’t perform that action at this time.
0 commit comments