-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile
28 lines (19 loc) · 612 Bytes
/
Makefile
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
pkg = $(shell basename $(CURDIR))
all: build
NAMESPACE: R/*
Rscript -e "devtools::document()"
README.html: README.md
pandoc -o README.html README.md
../$(pkg)*.tar.gz: DESCRIPTION NAMESPACE README.md
cd ../ && R CMD build $(pkg)
build: ../$(pkg)*.tar.gz
check: ../$(pkg)*.tar.gz
cd ../ && R CMD check $(pkg)*.tar.gz
rm ../$(pkg)*.tar.gz
install: ../$(pkg)*.tar.gz
cd ../ && R CMD INSTALL $(pkg)*.tar.gz
rm ../$(pkg)*.tar.gz
shiny: NAMESPACE
Rscript -e "shiny::runApp()"
deploy: NAMESPACE
Rscript -e "rsconnect::deployApp(appFiles = c("ui.R", "server.R", "R/word_count.R"), forceUpdate = TRUE)"