Created
December 8, 2010 22:43
-
-
Save vsbuffalo/734056 to your computer and use it in GitHub Desktop.
R package Makefile template
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# R package Makefile template | |
# Vince Buffalo <[email protected]> (with poly-A tail removed) | |
# | |
# Replace 'package' with the name of your package (which should be a | |
# directory). My layout for package development is: | |
# package_build | |
# - TODO | |
# - Readme.md (for Github) | |
# - package (actual R package directory) | |
# - Makefile (this) | |
# - test-all.R (but this is just a wrapper around package/tests | |
# | |
DIR=package | |
PKG=$(DIR)_*.tar.gz | |
build: clean | |
R CMD build $(DIR) | |
install: | |
R CMD install $(PKG) | |
all: build install | |
clean: clean-pdf | |
rm -f qrqc_*.tar.gz | |
clean-pdf: | |
rm -f $(DIR).pdf | |
pdf: clean-pdf | |
R CMD Rd2pdf $(DIR) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment