Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upuse Rcpp vignette style #153
Conversation
|
Looks good. There might be an inconsistency due to me. Subsection 2.7.3 includes |
Done! |
|
BTW, one downside is that you need a helper script such as the snippet below to compile the vignette. #!/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())
tools::texi2pdf(gsub(".Rnw", ".tex", srcfile))
})) |
|
Not familiar with that. I just compile my original one in Rstudio. Thanks for reminding. Really learned a lot from you this summer. |
|
It's the non-standard (but perfectly fine and permitted) vignette engine we use: based on highlight. All pretty easy on Linux, and (I presume) possible on macOS... |
@binxiangni I updated the vignette a little, see a (temp) copy of the pdf for a quick glance.