tests/testthat/examples/db2/src/connection/script.R

dat1 <- DBI::dbReadTable(con1, "mtcars")
dat2 <- DBI::dbReadTable(con2, "iris")

png("mygraph.png")
par(mfrow = c(2, 1))
boxplot(mpg ~ cyl, dat1)
boxplot(Sepal.Length ~ Species, dat2)
dev.off()

Try the orderly package in your browser

Any scripts or data that you put into this service are public.

orderly documentation built on Sept. 22, 2021, 5:09 p.m.