Skip to content

Commit 3869404

Browse files
committed
add makefile commands for install/etc
1 parent 465b14d commit 3869404

File tree

1 file changed

+24
-5
lines changed

1 file changed

+24
-5
lines changed

Makefile

Lines changed: 24 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,28 @@
1-
all: move rmd2md
1+
RSCRIPT = Rscript --no-init-file
22

33
move:
4-
cp inst/vign/gistr.md vignettes/
5-
cp -rf inst/vign/img/* vignettes/img/
4+
cp inst/vign/gistr.md vignettes/
5+
cp -rf inst/vign/img/* vignettes/img/
66

77
rmd2md:
8-
cd vignettes;\
9-
mv gistr.md gistr.Rmd
8+
cd vignettes;\
9+
mv gistr.md gistr.Rmd
10+
11+
install: doc build
12+
R CMD INSTALL . && rm *.tar.gz
13+
14+
build:
15+
R CMD build .
16+
17+
doc:
18+
${RSCRIPT} -e "devtools::document()"
19+
20+
eg:
21+
${RSCRIPT} -e "devtools::run_examples()"
22+
23+
check:
24+
${RSCRIPT} -e 'rcmdcheck::rcmdcheck(args = c("--as-cran"))'
25+
26+
test:
27+
${RSCRIPT} -e 'devtools::test()'
28+

0 commit comments

Comments
 (0)