diff options
author | Alassane Samba <alassane.samba@orange.com> | 2017-03-29 16:19:15 +0200 |
---|---|---|
committer | Alassane Samba <alassane.samba@orange.com> | 2017-03-29 14:46:47 +0000 |
commit | 80b0ba4a8d41adee65adf73bebed4bbef3c065c3 (patch) | |
tree | 1359a36885c5dd62e0f4f63a90cbdf406cde4f28 /contrib/TOM/tomRun.R | |
parent | 1bcbfb8a99e0a42bb6d5b87ade3ec15fcddc4bf7 (diff) |
init TOM: machine learning on test results
Change-Id: Ic66214e53d694bef9d4fac08a2ededa1f3ae4f82
Signed-off-by: Alassane Samba <alassane.samba@orange.com>
Diffstat (limited to 'contrib/TOM/tomRun.R')
-rw-r--r-- | contrib/TOM/tomRun.R | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/contrib/TOM/tomRun.R b/contrib/TOM/tomRun.R new file mode 100644 index 00000000..ecfe9216 --- /dev/null +++ b/contrib/TOM/tomRun.R @@ -0,0 +1,20 @@ +# ---------------------------------------------------------------------- +# title: TOM runner +# description: Machine Learning-Based Test Results Analysis +# author: Alassane Samba (alassane.samba@orange.com) +# Copyright (c) 2017 Orange +# All rights reserved. This program and the accompanying materials +# are made available under the terms of the Apache License, Version 2.0 +# which accompanies this distribution, and is available at +# http://www.apache.org/licenses/LICENSE-2.0 +# ---------------------------------------------------------------------- +# dependencies +packages <- c("plumber") +if (length(setdiff(packages, rownames(installed.packages()))) > 0) { + install.packages(setdiff(packages, rownames(installed.packages())),dependencies = T, repos = "https://cloud.r-project.org/") +} +try(library(plumber), silent=TRUE) +library(plumber) +# run TOM +r<-plumb("R/tom.R") +r$run(port=8000)
\ No newline at end of file |