Skip to content

Commit 361bf74

Browse files
committed
Merge pull request #256 from RcppCore/feature/vignettes-highlight-driver
Enable preview of vignettes in RStudio
2 parents fb697c9 + ff3d89c commit 361bf74

12 files changed

+25
-1
lines changed

ChangeLog

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
2015-02-14 JJ Allaire <[email protected]>
2+
3+
* Rcpp.Rproj: Specify Sweave as Rnw handler for RStudio
4+
* vignettes/*.Rnw: Add driver magic comment and turn off
5+
Sweave concordance.
6+
* vignettes/.gitignore: Ignore artifacts of PDF preview
7+
18
2015-02-13 Dirk Eddelbuettel <[email protected]>
29

310
* .travis.yml (install): Switch to using ppa:edd/misc to install all the

Rcpp.Rproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ UseSpacesForTab: Yes
99
NumSpacesForTab: 4
1010
Encoding: UTF-8
1111

12-
RnwWeave: knitr
12+
RnwWeave: Sweave
1313
LaTeX: pdfLaTeX
1414

1515
AutoAppendNewline: Yes

vignettes/.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
Rcpp-*.bbl
2+
Rcpp-*.log
3+
Rcpp-*.tex
4+
Rcpp-*.pdf
5+
unitTests-results/

vignettes/Rcpp-FAQ.Rnw

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
1+
% !Rnw driver = highlight::HighlightWeaveLatex()
12
\documentclass[10pt]{article}
23
%\VignetteIndexEntry{Rcpp-FAQ}
34
%\VignetteEngine{highlight::highlight}
45
%\VignetteKeywords{Rcpp, FAQ}
56
%\VignetteDepends{Rcpp}
7+
68
\usepackage[USletter]{vmargin}
79
\setmargrb{0.75in}{0.75in}{0.75in}{0.75in}
810

vignettes/Rcpp-attributes.Rnw

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
1+
% !Rnw driver = highlight::HighlightWeaveLatex()
12
\documentclass[11pt]{article}
23
%\VignetteIndexEntry{Rcpp-attributes}
34
%\VignetteEngine{highlight::highlight}
45
%\VignetteKeywords{Rcpp, attributes}
56
%\VignetteDepends{Rcpp}
7+
68
\usepackage[USletter]{vmargin}
79
\setmargrb{1.25in}{1.25in}{1.25in}{1.25in}
810

vignettes/Rcpp-extending.Rnw

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
1+
% !Rnw driver = highlight::HighlightWeaveLatex()
12
\documentclass[10pt]{article}
23
%\VignetteIndexEntry{Rcpp-extending}
34
%\VignetteEngine{highlight::highlight}
45
%\VignetteKeywords{Rcpp, package}
56
%\VignetteDepends{Rcpp}
7+
68
\usepackage[USletter]{vmargin}
79
\setmargrb{0.75in}{0.75in}{0.75in}{0.75in}
810

vignettes/Rcpp-introduction.Rnw

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
%\VignetteIndexEntry{Rcpp-introduction}
55
%\VignetteKeywords{Rcpp, foreign function interface, .Call, C++, R}
66
%\VignetteDepends{Rcpp}
7+
\SweaveOpts{concordance=FALSE}
78

89
\author{Dirk Eddelbuettel\\Debian Project \And Romain Fran\c{c}ois\\\proglang{R} Enthusiasts}
910
\Plainauthor{Dirk Eddelbuettel, Romain Fran\c{c}ois}

vignettes/Rcpp-modules.Rnw

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
% !Rnw driver = highlight::HighlightWeaveLatex()
12
\documentclass[10pt]{article}
23
%\VignetteIndexEntry{Rcpp-modules}
34
%\VignetteEngine{highlight::highlight}

vignettes/Rcpp-package.Rnw

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
% !Rnw driver = highlight::HighlightWeaveLatex()
12
\documentclass[10pt]{article}
23
%\VignetteIndexEntry{Rcpp-package}
34
%\VignetteEngine{highlight::highlight}

vignettes/Rcpp-quickref.Rnw

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
% !Rnw driver = highlight::HighlightWeaveLatex()
12
\documentclass[8pt,twocolumn,a4paper]{article}
23
%\VignetteIndexEntry{Rcpp-quickref}
34
%\VignetteEngine{highlight::highlight}

0 commit comments

Comments
 (0)