library("microbenchmark")
x <- 1:10
y <- rnorm(10)
microbenchmark(R = approx(x, y, x+0.5))
#> Unit: microseconds
#> expr min lq mean median uq max neval
#> R 69.698 85.2985 173.4748 86.277 87.98 8411.178 100
I hereby claim:
- I am imanuelcostigan on github.
- I am imanuel (https://keybase.io/imanuel) on keybase.
- I have a public key whose fingerprint is 4087 0C16 D22B C367 C3F3 5F0D 5193 B04B F7A2 5EF1
To claim this, I am signing this object:
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
# Make sure devtools is installed | |
# install.packages("devtools") | |
# Then source this gist | |
# devtools::source_gist("bb6b3704f6c45bc50769") | |
ingesters <- c("readr", "readxl", "haven") | |
manipulatrs <- c("dplyr", "tidyr", "lubridate") | |
others <- c("testthat", "ggplot2", "knitr", "yaml", "rmarkdown") | |
install.packages(c(ingesters, manipulatrs, others)) |
RC generators should be documented the same way S4 objects are documented. However, there is no convention to documenting RC methods.
The documentation of RC generator objects follows the general pattern of S4 classes. The sections or bits automatically generated (using promptClass
) for an RC that I have written are:
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
<?xml version="1.0" encoding="utf-8"?> | |
<!-- # https://github.com/hadley/xml2/issues/79 --> | |
<Items> | |
<Item index_0="0" index_1="0"> | |
<Value>1</Value> | |
</Item> | |
<Item index_0="0" index_1="1"> | |
<Value>2</Value> | |
</Item> | |
</Items> |