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

Conversation

@coatless
Copy link
Contributor

@coatless coatless commented Jul 15, 2016

Addressed #418

Addressed #418
@eddelbuettel
Copy link
Member

@eddelbuettel eddelbuettel commented Jul 15, 2016

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

@coatless coatless commented Jul 15, 2016

@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>>=

This comment has been minimized.

@eddelbuettel

eddelbuettel Jul 15, 2016
Member

Nice one!

@eddelbuettel eddelbuettel merged commit 406befa into RcppCore:master Jul 15, 2016
1 check passed
1 check passed
continuous-integration/travis-ci/pr The Travis CI build passed
Details
@eddelbuettel
Copy link
Member

@eddelbuettel eddelbuettel commented Jul 16, 2016

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

@eddelbuettel
Copy link
Member

@eddelbuettel eddelbuettel commented Jul 16, 2016

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

@coatless coatless commented Jul 16, 2016

@eddelbuettel
Copy link
Member

@eddelbuettel eddelbuettel commented Jul 16, 2016

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
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

2 participants
You can’t perform that action at this time.