Skip to content

Commit

Permalink
Tweaked R script to handle macros
Browse files Browse the repository at this point in the history
  • Loading branch information
baddstats committed Jul 9, 2016
1 parent 5335f70 commit e8469bd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,6 @@ _site
# R files
.Rhistory
.RData

# auto-generated Rd2pdf files
.Rd2pdf*
4 changes: 2 additions & 2 deletions _scripts/releasescript.R
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
### This scripts expects to find the spatstat DESCRIPTION and NEWS
### This script expects to find the spatstat DESCRIPTION and NEWS
### file in ../../spatstat/

### The script needs the command line tool pdfinfo provided by the
Expand All @@ -23,7 +23,7 @@ setwd("..")
# Generate newest quickref:
out <- "resources/spatstatQuickref.pdf"
file.remove(out)
cmd <- paste("R CMD Rd2pdf --title='Spatstat Quick Reference guide' --no-preview -o",
cmd <- paste("R CMD Rd2pdf --RdMacros=spatstat --title='Spatstat Quick Reference guide' --no-preview -o",
out, "../spatstat/man/spatstat-package.Rd")
system(cmd, wait = FALSE, ignore.stdout = TRUE)

Expand Down

0 comments on commit e8469bd

Please sign in to comment.