man/scaffolding/test_script_advanced.R

library(ggplot2)

ggplot(mtcars, aes(x = mpg, y = hp, color = factor(cyl))) +
  geom_point() +
  theme_minimal() +
  labs(color = "cyl")

ggsave(here::here("man/scaffolding/mtcars_plot.png"))

lm_mtcars <- lm(mpg ~ hp, data = mtcars)
saveRDS(lm_mtcars, here::here("man/scaffolding/mtcars_lm.Rds"))

Try the jetty package in your browser

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

jetty documentation built on April 15, 2025, 1:10 a.m.