This is a simple Makefile to build an R package.
Put it in a package root (next to the DESCRIPTION).
As Makefile targets:
document: document using {devtools}source_package: build a source packagebinary_package: build a binary packagepackages: build source and binary packagespkgdown: build a {pkgdown} sitedrat: push source and binary packages to a {drat} repositorytargets: show Makefile variables and dependenciesall: everything (excepttargets)
The Makefile is still in development!
I am sure some actions can be improved: feel free to fork or submit a pull request.
- R with the desired packages
- GNU Make >= 4.3
- Enables grouped explicit targets, to avoid documenting unnecessarily
- Windows: get it from Chocolatey
- GNU tools:
sed,headto extract the package version.