1
0
mirror of https://github.com/msberends/AMR.git synced 2025-08-17 21:33:10 +02:00
This commit is contained in:
2022-09-27 12:18:16 +02:00
parent 626757646b
commit dfdd7a0968
4 changed files with 5 additions and 3 deletions

View File

@@ -7,10 +7,11 @@ 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 'R/sysdata.rda' and all files in folders 'data-raw' and 'man' to this commit"
echo "-> Adding all files in 'data-raw' to this commit"
git add data-raw/*
git add man/*
git add R/sysdata.rda
git add NAMESPACE
else
echo "- R package 'pkgload', 'devtools', 'dplyr', or 'styler' not installed!"
currentpkg="your"