Skip to content

Instantly share code, notes, and snippets.

@wush978
Created November 22, 2012 15:02
Show Gist options
  • Save wush978/4131594 to your computer and use it in GitHub Desktop.
Save wush978/4131594 to your computer and use it in GitHub Desktop.
shell script for install R package
#!/bin/bash
# Program:
# Check Folder $1 with R
./roxygenize.R $1
rm -rf install
mkdir install
cp -r -H $1 install
cd install
find . -name .git -type d | xargs rm -rf
R CMD INSTALL $1
cd ..
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment