easymediation is an R package designed to discourage you from performing mediation analysis. The package includes the simplest (and most correct) way to do causal mediation analysis.
You can install easymediation from GitHub using the remotes
package:
# Install easymediation from GitHub
remotes::install_github("rpsychologist/easymediation")
# Load the easymediation package
library(easymediation)
# Run the mediation analysis using example data
mediation()