We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3646fb3 commit 0a43191Copy full SHA for 0a43191
Makefile
@@ -1,3 +1,4 @@
1
+PACKAGE := $(shell grep '^Package:' DESCRIPTION | sed -E 's/^Package:[[:space:]]+//')
2
RSCRIPT = Rscript --no-init-file
3
4
move:
@@ -20,8 +21,10 @@ doc:
20
21
eg:
22
${RSCRIPT} -e "devtools::run_examples()"
23
-check:
24
- ${RSCRIPT} -e 'rcmdcheck::rcmdcheck(args = c("--as-cran"))'
+check: build
25
+ _R_CHECK_CRAN_INCOMING_=FALSE R CMD CHECK --as-cran --no-manual `ls -1tr ${PACKAGE}*gz | tail -n1`
26
+ @rm -f `ls -1tr ${PACKAGE}*gz | tail -n1`
27
+ @rm -rf ${PACKAGE}.Rcheck
28
29
test:
30
${RSCRIPT} -e 'devtools::test()'
0 commit comments