An R package for importing a set of commonly used, general purpose functions and custom R options.
A current R installation.
devtools
package: https://www.rstudio.com/products/rpackages/devtools/So that you can install the GitHub contents as an R package. You can install the package by opening up RStudio or an R terminal and running:
install.packages("devtools")
For Windows users, you may be required to install Rtools first before you can use the devtools
package. These are a set of build tools customized for building R packages (see devtools
link for more details).
Once devtools
is installed, you’ll use the install_github()
function
from the package to download and install the package from this GitHub
repository. Run the code below to download and install:
devtools::install_github("iamamutt/mejr", dependencies=TRUE)
If successful, the package should now be installed. Load the package as you normally would any other package (see below). Repeat these steps if there are updates to the package or to reinstall on another computer. You should now be able to use the package materials and should see it in your packages tab if using RStudio.
library(mejr)
Viewing the package welcome page:
package?mejr
Viewing package information and a list of exported objects:
help(package="mejr")
# or
library(help="mejr")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.