Skip to content

Instantly share code, notes, and snippets.

@navicore
Last active August 29, 2015 14:01
Show Gist options
  • Save navicore/4e83a904d1d01226ad7f to your computer and use it in GitHub Desktop.
Save navicore/4e83a904d1d01226ad7f to your computer and use it in GitHub Desktop.
Build an R package
#!/bin/sh
# requires R and latex / pdflatex
rm -rf ./mypkg/..Rcheck
cd ./mypkg
R CMD check .
cp ..Rcheck/mypkg-manual.pdf ..
rm -rf ..Rcheck
cd ..
R CMD build mypkg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment