-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathbuild_hash.py
29 lines (26 loc) · 936 Bytes
/
build_hash.py
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
import datetime
base: str = """
#' WebGestaltR: The R interface for enrichment analysis with WebGestalt.
#'
#' @docType package
#' @name WebGestaltR
#' @import methods
#' @import grDevices
#' @import graphics
#' @import utils
#' @importFrom Rcpp sourceCpp
#' @importFrom rlang .data
#' @useDynLib WebGestaltR
#'
NULL
.onAttach <- function(lib, pkg) {
packageStartupMessage(\"******************************************\n\")
packageStartupMessage(\"* *\n\")
packageStartupMessage(\"* Welcome to WebGestaltR-rust! *\n\")
packageStartupMessage(\"* {HASHHERE} *\n\")
packageStartupMessage(\"* *\n\")
packageStartupMessage(\"******************************************\n\")
}
"""
with open("R/WebGestaltR-package.R", "w") as w:
w.write(base.replace("{HASHHERE}", datetime.datetime.now().time().__str__()))