diff options
author | Vivien Kraus <vivien@planete-kraus.eu> | 2021-03-19 16:59:39 +0100 |
---|---|---|
committer | Vivien Kraus <vivien@planete-kraus.eu> | 2021-03-22 20:22:35 +0100 |
commit | b885294b77a5bc22d5681b0cd0f219acd08a662e (patch) | |
tree | f63d17345a90e8553313bbc4c0d3b8923c09eaa9 /bootstrap |
Initial commit
Diffstat (limited to 'bootstrap')
-rwxr-xr-x | bootstrap | 38 |
1 files changed, 38 insertions, 0 deletions
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 <vivien@planete-kraus.eu>", + "Maintainer: Vivien Kraus <vivien@planete-kraus.eu>", + "Description: Implementation of for anomaly detection.", + "License: Proprietary", + "LazyData: true"), + "DESCRIPTION") +use_namespace (roxygen = TRUE) +document () +load_all () + +check_matrix_product () +check_gradient () + +build () |