From b885294b77a5bc22d5681b0cd0f219acd08a662e Mon Sep 17 00:00:00 2001 From: Vivien Kraus Date: Fri, 19 Mar 2021 16:59:39 +0100 Subject: Initial commit --- bootstrap | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100755 bootstrap (limited to 'bootstrap') diff --git a/bootstrap b/bootstrap new file mode 100755 index 0000000..1e5ddb9 --- /dev/null +++ b/bootstrap @@ -0,0 +1,38 @@ +#!/usr/bin/env Rscript + +git_version <- tryCatch ({ + readLines (".tarball-version") +}, error = function (cond) { + "0.0.0.9000" +}) +parts <- strsplit (git_version, "-", fixed = TRUE)[[1]] +tag <- parts[1] +commit <- NA +if (length (parts) > 1) { + commit <- 9000 + as.numeric (parts[2]) +} +r_version <- tag +if (!is.na (commit)) { + r_version <- sprintf ("%s.%d", tag, commit) +} + +library ("devtools") +writeLines (c ( + "Package: strats", + "Type: Package", + "Title: Semi-supervised Transductive Residual Analysis of Time Series", + sprintf ("Version: %s", r_version), + "Author: Vivien Kraus ", + "Maintainer: Vivien Kraus ", + "Description: Implementation of for anomaly detection.", + "License: Proprietary", + "LazyData: true"), + "DESCRIPTION") +use_namespace (roxygen = TRUE) +document () +load_all () + +check_matrix_product () +check_gradient () + +build () -- cgit v1.2.3