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
source("ifelse-def.R") | |
##' warnifnot(): a "only-warning" version of stopifnot(): | |
##' {Yes, learn how to use do.call(substitute, ...) in a powerful manner !!} | |
warnifnot <- stopifnot | |
body(warnifnot) <- do.call(substitute, list(body(stopifnot), | |
list(stop = quote(warning)))) | |
## (now, this was really cute ....) |
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
## original idea & report by Henrik Bengtsson at | |
## https://stat.ethz.ch/pipermail/r-devel/2016-February/072388.html | |
## This script downloads the list of currently published R packages | |
## from CRAN and also looks at all the archived package versions to | |
## combine these into a list of all R packages ever published on | |
## CRAN with the date of first release. | |
## CRAN mirror to use | |
CRAN_page <- function(...) { |
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 Markdown: "Why 10 * 0.1 is rarely 1.0" | |
======================================================== | |
This is an R Markdown document. Markdown is a simple formatting syntax for authoring web pages (in Rstudio click the **MD** toolbar button for help on Markdown). | |
When you click the **Knit HTML** button a web page will be generated that includes both content as well as the output of any embedded R code chunks within the document. You can embed an R code chunk like this: | |
```{r} | |
summary(cars) | |
``` |