-
-
Notifications
You must be signed in to change notification settings - Fork 209
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
Added section on default function parameters. #505
Conversation
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 ? |
@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>>= |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice one!
You never typeset this one, did you? Fix coming shortly ... |
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")
})) |
@eddelbuettel thanks for the script. I've added it: https://github.com/RcppCore/Rcpp/wiki/Modifying-an-Rcpp-Vignette |
Good. I just expanded the intro paragraph ever so slightly. |
Addressed #418