fix proportion ci calc and theme
Gitea Organization/civilyticsR/pipeline/head There was a failure building this commit
Gitea Organization/civilyticsR/pipeline/head There was a failure building this commit
This commit is contained in:
@@ -1,26 +1,26 @@
|
||||
# h/t to @jimhester and @yihui for this parse block:
|
||||
# https://github.com/yihui/knitr/blob/dc5ead7bcfc0ebd2789fe99c527c7d91afb3de4a/Makefile#L1-L4
|
||||
# Note the portability change as suggested in the manual:
|
||||
# https://cran.r-project.org/doc/manuals/r-release/R-exts.html#Writing-portable-packages
|
||||
PKGNAME = `sed -n "s/Package: *\([^ ]*\)/\1/p" DESCRIPTION`
|
||||
PKGVERS = `sed -n "s/Version: *\([^ ]*\)/\1/p" DESCRIPTION`
|
||||
|
||||
|
||||
all: check
|
||||
|
||||
build: install_deps
|
||||
R CMD build .
|
||||
|
||||
check: build
|
||||
R CMD check --no-manual $(PKGNAME)_$(PKGVERS).tar.gz
|
||||
|
||||
install_deps:
|
||||
Rscript \
|
||||
-e 'if (!requireNamespace("remotes")) install.packages("remotes")' \
|
||||
-e 'remotes::install_deps(dependencies = TRUE)'
|
||||
|
||||
install: build
|
||||
R CMD INSTALL $(PKGNAME)_$(PKGVERS).tar.gz
|
||||
|
||||
clean:
|
||||
@rm -rf $(PKGNAME)_$(PKGVERS).tar.gz $(PKGNAME).Rcheck
|
||||
# h/t to @jimhester and @yihui for this parse block:
|
||||
# https://github.com/yihui/knitr/blob/dc5ead7bcfc0ebd2789fe99c527c7d91afb3de4a/Makefile#L1-L4
|
||||
# Note the portability change as suggested in the manual:
|
||||
# https://cran.r-project.org/doc/manuals/r-release/R-exts.html#Writing-portable-packages
|
||||
PKGNAME = `sed -n "s/Package: *\([^ ]*\)/\1/p" DESCRIPTION`
|
||||
PKGVERS = `sed -n "s/Version: *\([^ ]*\)/\1/p" DESCRIPTION`
|
||||
|
||||
|
||||
all: check
|
||||
|
||||
build: install_deps
|
||||
R CMD build .
|
||||
|
||||
check: build
|
||||
R CMD check --no-manual $(PKGNAME)_$(PKGVERS).tar.gz
|
||||
|
||||
install_deps:
|
||||
Rscript \
|
||||
-e 'if (!requireNamespace("remotes")) install.packages("remotes")' \
|
||||
-e 'remotes::install_deps(dependencies = TRUE)'
|
||||
|
||||
install: build
|
||||
R CMD INSTALL $(PKGNAME)_$(PKGVERS).tar.gz
|
||||
|
||||
clean:
|
||||
@rm -rf $(PKGNAME)_$(PKGVERS).tar.gz $(PKGNAME).Rcheck
|
||||
|
||||
Reference in New Issue
Block a user