https://research.swtch.com/deps
https://simplystatistics.org/2015/11/06/how-i-decide-when-to-trust-an-r-package/
https://blog.revolutionanalytics.com/2017/06/r-fda.html
http://user2007.org/program/presentations/soukup.pdf
http://washstat.org/presentations/20181024/Schuette.pdf
https://notstatschat.rbind.io/2019/02/04/how-do-you-tell-what-packages-to-trust/
https://notstatschat.rbind.io/2019/02/18/absolutely-no-warranty/
https://twitter.com/bmwiernik/status/1096062700042575872?s=19
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 (Elementary Differential Equations) | |
/Author (Edwards & Penney) | |
/DOCINFO pdfmark | |
[ /Title (Contents) | |
/Page 6 | |
/OUT pdfmark | |
[ /Count -8 | |
/Title (1. First-Order Differential Equations) |
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
# A proposal for a Chrome Remote Interface with R | |
# Copyright: Romain Lesur | |
# Year: 2018 | |
# License: MIT | |
# Browser and websocket connection helpers -------------------------------- | |
# From milesmcbain/chradle (MIT License) | |
debugger_200_ok <- function(port, retry_delay = 0.2, max_attempts = 15, attempt = 1) { | |
if (max_attempts <= attempt) { | |
stop(paste0("Reached max attempts (", max_attempts, |
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
# Packages --------------------------------------------------------------- | |
remotes::install_github('milesmcbain/chradle') | |
remotes::install_github('rlesur/pagedown@automation') | |
remotes::install_github('rstudio/websocket') | |
library(chradle) | |
library(pagedown) | |
library(websocket) | |
library(jsonlite) | |
# Chrome headless helpers ------------------------------------------------- |
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
# Packages --------------------------------------------------------------- | |
remotes::install_github('milesmcbain/chradle') | |
remotes::install_github('rlesur/pagedown@automation') | |
library(chradle) | |
library(pagedown) | |
library(httpuv) | |
# Chrome headless helpers ------------------------------------------------- | |
# Thanks to Miles McBain | |
browser_init <- function(debug_port = 9222, bin = "google-chrome"){ |
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: Glossary | |
output: | |
bookdown::pdf_document2: | |
template: two-col.latex | |
latex_engine: xelatex | |
number_sections: FALSE | |
toc: False | |
pandoc_args: ["--lua-filter", "sort_definition_list.lua"] | |
includes: |
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
DefinitionList = function(dl) | |
local terms = {} | |
local inlines = {} | |
local blocks = {} | |
local sorted = {} | |
for i, item in ipairs(dl.content) do | |
local term = string.upper(pandoc.utils.stringify(item[1])) --string.upper() is used because all the terms were not capitalized in the example | |
table.insert(terms, term) | |
inlines[term] = item[1] | |
blocks[term] = item[2] |
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
<!DOCTYPE html> | |
<html xmlns="http://www.w3.org/1999/xhtml"$if(lang)$ lang="$lang$" xml:lang="$lang$"$endif$> | |
<head> | |
<meta charset="utf-8" /> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | |
<meta name="generator" content="pandoc" /> |
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
# case_when factory: ---------------------------------------------- | |
create_case_when <- function(..., vars = "x") { | |
fun_fmls <- purrr::map(rlang::set_names(vars), ~ rlang::missing_arg()) | |
fun_body <- substitute({ | |
for (name in var) { | |
symb <- rlang::eval_bare(rlang::sym(name)) | |
var <- rlang::eval_tidy(rlang::enquo(symb)) | |
assign(name, var) | |
} | |
forms <- purrr::map(formulas, rlang::`f_env<-`, value = environment()) |
NewerOlder