This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This is a simple public sample. | |
--- | |
It really should do more. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
```{r setup, echo=FALSE, results='hide'} | |
chunkref <- local({ | |
function(chunklabel) { | |
sprintf('[%s](#%s)', chunklabel, chunklabel ) | |
} | |
}) | |
secref <- local({ | |
function(seclabel) { | |
sprintf('[%s](#%s)', seclabel, seclabel ) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
myread.csv <- function( file, header=TRUE, sep=",", quote="\"", dec=".", fill=TRUE, comment.char="", skip.footer=0, ... ) { | |
file <- readLines(file) | |
if( skip.footer > 0 ) file <- file[-(skip.footer)] | |
read.csv( file, header, sep, quote, dec, fill, comment.char, ... ) | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// [[Rcpp::plugins("cpp11")]] | |
#include <ostream> | |
#include <iterator> | |
#include <RcppCommon.h> | |
class BadIter; | |
RCPP_EXPOSED_CLASS(BadIter) | |
#include <Rcpp.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// [[Rcpp::plugins("cpp11")]] | |
#include <RcppCommon.h> | |
class preVector; | |
RCPP_EXPOSED_CLASS(preVector) | |
class postVector; | |
RCPP_EXPOSED_CLASS(postVector) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
_Why_ it is so slow? A little research located a mail group posting from a year ago this month where @hadley, the package author, [states][2] | |
> This is a drawback of the way that ddply always works with data | |
frames. It will be a bit faster if you use summarise instead of | |
data.frame (because data.frame is very slow), but I'm still thinking | |
about how to overcome this fundamental limitation of the ddply | |
approach. | |
--- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*** | |
* | |
* Scenario: | |
* | |
* You desire to use RCPP_EXPOSE_CLASS on a class and it needs to store | |
* a pointer to somewhere in a constructor initialized container either | |
* using the default initializer list or from within the constructor. | |
* | |
* Problem: | |
* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
clang++ -I/usr/share/R/include -DNDEBUG -I../inst/include/ -I"/home/thell/R/x86_64-pc-linux-gnu-library/3.0/Rcpp/include" -fpic -Wall -O3 -c RcppExports.cpp -o RcppExports.o | |
14 | |
** libs | |
15 | |
clang++ -I/usr/share/R/include -DNDEBUG -I../inst/include/ -I"/home/thell/R/x86_64-pc-linux-gnu-library/3.0/Rcpp/include" -fpic -Wall -O3 -c RcppMultiPrecision.cpp -o RcppMultiPrecision.o | |
16 | |
clang++ -shared -o RcppMultiPrecision.so RcppExports.o RcppMultiPrecision.o -lmpfr -lgmp -L/usr/lib/R/lib -lR |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
title: "SO22524822" | |
author: "Thell" | |
date: "03/21/2014" | |
output: html_document | |
--- | |
```{r setup} | |
# A killPrefix hook. | |
default_output_hook <- knitr::knit_hooks$get("output") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
title: "Pandoc MathTest" | |
author: "Thell" | |
date: "04/09/2014" | |
output: | |
html_document: default | |
pdf_document: | |
pandoc_args: --tex-escape-outer-math | |
--- |
OlderNewer