Created
November 25, 2014 08:54
-
-
Save nassimhaddad/d0efdfeddf06dda00f87 to your computer and use it in GitHub Desktop.
Scripts that build and checks packages (source: https://github.com/jwijffels/ETLUtils)
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
#!/bin/bash | |
echo "Removing building information..." | |
rm -rf output | |
echo "Generate documentation..." | |
R -q -f roxygen.R | |
mkdir output | |
cd output | |
R CMD build --resave-data ../pkg | |
for x in *.tar.gz | |
do | |
R CMD check --as-cran $x | |
done |
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
@echo off | |
echo Removing building information... | |
rm -rf output | |
echo Generate documentation... | |
Rscript roxygen.R | |
md output | |
cd output | |
R CMD build --resave-data ../pkg | |
FOR %%1 in (*.tar.gz) DO R CMD check --as-cran %%1 | |
cd .. |
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
library(methods) | |
library(utils) | |
library(roxygen2) | |
options(error=traceback) | |
unlink( 'pkg/man', TRUE) | |
setwd('pkg') | |
roxygenize('.', clean = TRUE) | |
if (length(list.files('inst/doc')) == 0){ | |
unlink( 'inst/doc', TRUE) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment