Skip to content

Instantly share code, notes, and snippets.

@lionel-
lionel- / magrittr-tidy-eval.R
Last active December 17, 2017 10:19
Unquoting RHS of magrittr pipe with quosure support
# Actually does not work because quosured magrittr pronouns are not
# evaluated in the right environment
library("magrittr")
library("rlang")
# Anticipate renaming of `quo_is_lang()` in rlang
quo_is_call <- quo_is_lang
@mages
mages / Gamma_Exponential_Stan.R
Last active September 24, 2021 17:35
Gamma Exponential with Stan
library(rstan)
stanmodelcode <- "
data {
int<lower=0> N;
int<lower=0> y[N];
}
parameters {
real<lower=0.00001> Theta;
}
model {