[go: up one dir, main page]

Menu

[cfa9b7]: / buildEnv.R  Maximize  Restore  History

Download this file

96 lines (76 with data), 3.4 kB

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
################################################################################
# Copyright (C) 2016 Mango Business Solutions Ltd, http://www.mango-solutions.com
#
# This program is free software: you can redistribute it and/or modify it under
# the terms of the GNU Affero General Public License as published by the
# Free Software Foundation, version 3.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
# or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License
# for more details.
#
# You should have received a copy of the GNU Affero General Public License along
# with this program. If not, see <http://www.gnu.org/licenses/agpl-3.0.html>.
################################################################################
##############################
# Author: khanley
# Last modified: 02/06/2014
##############################
## Bring back the R_LIBS location
localLib <- Sys.getenv("R_LIBS")
.libPaths(localLib)
message("Checking for and installing dependencies...")
if (!suppressWarnings(require(bitops, lib.loc=localLib))) {
install.packages("./dependencies/bitops_1.0-6.zip", repos=NULL,
lib=localLib, INSTALL_opts = "--no-lock")
}
library(bitops, lib.loc=localLib)
if (!suppressWarnings(require(RCurl, lib.loc=localLib))) {
install.packages("./dependencies/RCurl_1.95-4.1.zip", repos=NULL,
lib=localLib, INSTALL_opts = "--no-lock")
}
library(RCurl, lib.loc=localLib)
if (!suppressWarnings(require(XML, lib.loc=localLib))) {
install.packages("./dependencies/XML_3.98-1.1.zip", repos=NULL,
lib=localLib, INSTALL_opts = "--no-lock")
}
library(XML, lib.loc=localLib)
if (!suppressWarnings(require(rjson, lib.loc=localLib))) {
install.packages("./dependencies/rjson_0.2.13.zip", repos=NULL,
lib=localLib, INSTALL_opts = "--no-lock")
}
library(rjson, lib.loc=localLib)
# documentation tools
if (!suppressWarnings(require(digest, lib.loc=localLib))) {
install.packages("./dependencies/digest_0.6.4.zip", repos=NULL,
lib=localLib, INSTALL_opts = "--no-lock")
}
library(digest, lib.loc=localLib)
if (!suppressWarnings(require(roxygen2, lib.loc=localLib))) {
install.packages("./dependencies/brew_1.0-6.zip", repos=NULL,
lib=localLib, INSTALL_opts = "--no-lock")
install.packages("./dependencies/Rcpp_0.11.1.zip", repos=NULL,
lib=localLib, INSTALL_opts = "--no-lock")
install.packages("./dependencies/stringr_0.6.2.zip", repos=NULL,
lib=localLib, INSTALL_opts = "--no-lock")
install.packages("./dependencies/roxygen2_3.1.0.zip", repos=NULL,
lib=localLib, INSTALL_opts = "--no-lock")
}
library(Rcpp, lib.loc=localLib)
library(stringr, lib.loc=localLib)
library(brew, lib.loc=localLib)
library(roxygen2, lib.loc=localLib)
# test framework
if (!suppressWarnings(require(testthat, lib.loc=localLib))) {
install.packages("./dependencies/testthat_0.7.2.99.tar.gz", repos=NULL,
lib=localLib, INSTALL_opts = "--no-lock", type="source")
}
library(testthat, lib.loc=localLib)
# RNMImport
if (!suppressWarnings(require(RNMImport, lib.loc=localLib))) {
install.packages("./dependencies/RNMImport_3.9.zip", repos=NULL,
lib=localLib, INSTALL_opts = "--no-lock")
}
library(RNMImport, lib.loc=localLib)
message("installation of R package dependencies: done")