The goal of learylib is to easily manage a few personal functions I find useful. A secondary goal is to explore package development in R, using pkgdown, usethis, & devtools to practice fully building out a package.
You can install the latest version of learylib from my Github repo with the devtools package. Given the limited scope & use of learylib, it will always live on Github.
install.packages("devtools")
devtools::install_github("mleary/learylib")
Using theme_leary
with the mtcars
dataset.
library(learylib)
library(ggplot2)
## basic example code
ggplot(mtcars, aes(wt, mpg)) +
geom_point() +
labs(title = "A basic example plot",
subtitle = "A little more detail in subtitle?") +
theme_leary()
Using see_pkg_funcs
to see all the functions within a package.
library(learylib)
see_pkg_funcs(learylib)
#> [1] "copy_to_clipboard" "not_in" "not_na"
#> [4] "rprofile_clear" "rprofile_update" "search_last_error"
#> [7] "see_lib_paths" "see_pkg_funcs" "theme_leary"
I can’t imagine why anyone would contribute to this, but hey it would be cool if you did! Feel free to submit a pull request or contact me if you want to add something.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.