-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update build to skip vignette run on CRAN.
- Loading branch information
1 parent
d1f0d3b
commit 7d534f4
Showing
4 changed files
with
17 additions
and
14 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,4 +10,3 @@ Makefile | |
^check$ | ||
^CRAN-SUBMISSION$ | ||
^cran-comments\.md$ | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,6 @@ | |
inst/doc | ||
vignettes/getting_started | ||
*.html | ||
check | ||
.vscode | ||
build | ||
.DS_Store |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,17 @@ | ||
.PHONY : build check man vignettes | ||
.PHONY : build clean | ||
|
||
vignettes/getting_started.html : vignettes/getting_started.Rmd vignettes/getting_started.stan | ||
Rscript -e "devtools::build_rmd('$<')" | ||
build : build/gptoolsStan | ||
|
||
man : | ||
build/gptoolsStan : | ||
# Update documentation. | ||
Rscript -e 'devtools::document()' | ||
# Clean up an potential previous builds and create a clean directory. | ||
rm -rf build && mkdir -p build | ||
# Build, check, and extract the package. | ||
cd build \ | ||
&& NOT_CRAN=true R CMD build .. \ | ||
&& R CMD check --as-cran *.tar.gz \ | ||
&& tar -xf *.tar.gz | ||
|
||
build : | ||
mkdir -p build | ||
cd build && R CMD build .. | ||
|
||
check : build | ||
mkdir -p check | ||
cd check && R CMD check --as-cran ../build/*.tar.gz | ||
clean : | ||
rm -rf build |
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