-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile.wynton
More file actions
29 lines (22 loc) · 1.22 KB
/
Makefile.wynton
File metadata and controls
29 lines (22 loc) · 1.22 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
all: exdata
install:
module purge; \
module load CBI r; \
Rscript --version; \
Rscript -e "if (!requireNamespace('ggplot2')) { chooseCRANmirror(ind = 1); install.packages('ggplot2') }"; \
Rscript -e "if (!requireNamespace('remotes')) { chooseCRANmirror(ind = 1); install.packages('remotes') }"; \
Rscript -e "remotes::install_github('ucsf-wynton/wyntonquery')"; \
Rscript -e "packageVersion('wyntonquery')"
debug:
module purge; \
module load CBI r; \
Rscript --version; \
Rscript -e "packageVersion('wyntonquery')"
users_over_time:
Rscript -e "library(wyntonquery)" -e "source('incl/users_over_time.R')" -e "ggsave('users_over_time.png', gg, width = 8.0, height = 6.0)"
exdata: inst/exdata/ldap_wynton_dates.txt inst/exdata/ldap_wynton_phi_dates.txt
inst/exdata/ldap_wynton_dates.txt: FORCE
ldapsearch -H 'ldap://m1,ldap://m2' -x wyntonAccess=TRUE -x -LLL + | grep -E '^(createTimestamp:)' | sed 's/.* //' | sed -E 's/([0-9]{4})([0-9]{2})([0-9]{2}).*/\1-\2-\3/' > "$@"
inst/exdata/ldap_wynton_phi_dates.txt: FORCE
ldapsearch -H 'ldap://m1,ldap://m2' -x '(&(wyntonAccess=TRUE)(ProtectedAccess=TRUE))' -x -LLL + | grep -E '^(createTimestamp:)' | sed 's/.* //' | sed -E 's/([0-9]{4})([0-9]{2})([0-9]{2}).*/\1-\2-\3/' > "$@"
FORCE: