Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added section on default function parameters. #505

Merged
merged 2 commits into from
Jul 15, 2016
Merged

Added section on default function parameters. #505

merged 2 commits into from
Jul 15, 2016

Conversation

coatless
Copy link
Contributor

Addressed #418

@eddelbuettel
Copy link
Member

You rock. I just glanced at it and I think a "Best Practice" is to only add questions at the end (so that references aka 'R FAQ 7.31' remain fixed). Shall we move it and make 3.12 instead of a new 3.1 ?

@coatless
Copy link
Contributor Author

@eddelbuettel I added one more change to deal with switching the verbatim environment used within the MacOS compiler flag section to the highlight code.

@@ -668,9 +668,9 @@ library paths. A solution is outlined

In short, you want to add this entry to your \texttt{~/.R/Makevars}:

\begin{verbatim}
<<lang=bash>>=
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice one!

@eddelbuettel eddelbuettel merged commit 406befa into RcppCore:master Jul 15, 2016
@eddelbuettel
Copy link
Member

You never typeset this one, did you? Fix coming shortly ...

@eddelbuettel
Copy link
Member

Now in b93dee8.

For what it is worth, here is a helper script I use on the Rnw files:

#!/usr/bin/Rscript

## use given argument(s) as target files, or else default to .Rnw files in directory
files <- if (length(commandArgs(TRUE)) == 0) dir(pattern="*.Rnw") else commandArgs(TRUE)

## convert all files from Rnw to pdf using the highlight driver
invisible(sapply(files, function(srcfile) {
    Sweave(srcfile, driver=highlight::HighlightWeaveLatex(boxes=TRUE))
    tools::texi2pdf(gsub(".Rnw", ".tex", srcfile))
    tools::texi2pdf(gsub(".Rnw", ".tex", srcfile), texi2dvi="pdflatex")
}))

@coatless
Copy link
Contributor Author

@eddelbuettel thanks for the script. I've added it:

https://github.com/RcppCore/Rcpp/wiki/Modifying-an-Rcpp-Vignette

@eddelbuettel
Copy link
Member

Good. I just expanded the intro paragraph ever so slightly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants