Skip to content

Commit

Permalink
Add build/pre_commit.R script, and ignore scratch folder
Browse files Browse the repository at this point in the history
  • Loading branch information
torfason committed Jun 5, 2022
1 parent 58f2ea4 commit 9ab801a
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .Rbuildignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,5 @@
^CRAN-RELEASE$
^revdep$
^CRAN-SUBMISSION$
^scratch$
^build$
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ doc
Meta
/doc/
/Meta/
scratch
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: import
Type: Package
Title: An Import Mechanism for R
Version: 1.3.0.9002
Version: 1.3.0.9003
Authors@R:
c(person(given = "Stefan Milton",
family = "Bache",
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
[![CRAN
status](https://www.r-pkg.org/badges/version/import)](https://CRAN.R-project.org/package=import)
[![CRAN status
shields](https://img.shields.io/badge/Git-1.3.0.9002-success)](https://github.com/rticulate/import)
shields](https://img.shields.io/badge/Git-1.3.0.9003-success)](https://github.com/rticulate/import)
[![R build
status](https://github.com/rticulate/import/workflows/R-CMD-check/badge.svg)](https://github.com/rticulate/import/actions)
<!-- badges: end -->
Expand Down
10 changes: 10 additions & 0 deletions build/pre_commit.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@

## Build package, documentation, and readme (before commits)
{
devtools::build()
devtools::document()
devtools::spell_check()
devtools::build_readme()
devtools::test()
message("Pre-commit tasks completed")
}

0 comments on commit 9ab801a

Please sign in to comment.