packrat/lib/x86_64-apple-darwin15.6.0/3.6.0/CodeDepends/samples/namedAnnotatedScript.R

a = data({
n = 100
x = rnorm(n)
e = rnorm(n)
abc = 1  # irrelevant and should be discarded
})

b = data({
y = 3 + 10*x + e
})

sim = simulation({
a = 1:3
b = sum(a)
k = rpois(3, b)
})

graphics = plot(model({
fit = lm(y ~ x)
plot(fit)
}))

foo({
  # Here just to check the file dependencies
 source("foo.R")    
})

# bar(1:10)
adnaniazi/krauseNiazi2019Analyses documentation built on June 9, 2019, 7:22 p.m.