The goal of mixpanelr is to provide an R wrapper for the Mixpanel API. It is currently incomplete and experimental.
You can install the development version of mixpanelr from with:
devtools::install_github("jimmyday12/mixpanelr")
This is a basic example which shows you how to solve a common problem: