mirror of
https://github.com/msberends/AMR.git
synced 2025-08-17 22:13:16 +02:00
update sysdata
This commit is contained in:
5
.github/prehooks/pre-commit
vendored
5
.github/prehooks/pre-commit
vendored
@@ -7,11 +7,10 @@ if command -v Rscript > /dev/null; then
|
||||
if [ "$(Rscript -e 'cat(all(c('"'pkgload'"', '"'devtools'"', '"'dplyr'"', '"'styler'"') %in% rownames(installed.packages())))')" = "TRUE" ]; then
|
||||
Rscript -e "source('data-raw/_pre_commit_hook.R')"
|
||||
currentpkg=`Rscript -e "cat(pkgload::pkg_name())"`
|
||||
echo "-> Adding all files in folders 'data-raw' and 'man' to this git commit"
|
||||
echo "-> Adding 'R/sysdata.rda' and all files in folders 'data-raw' and 'man' to this commit"
|
||||
git add data-raw/*
|
||||
git add man/*
|
||||
# git add inst/*
|
||||
# git add R/*
|
||||
git add R/sysdata.rda
|
||||
else
|
||||
echo "- R package 'pkgload', 'devtools', 'dplyr', or 'styler' not installed!"
|
||||
currentpkg="your"
|
||||
|
Reference in New Issue
Block a user