# NOT RUN {
## Fill in here the API token, key and secret as found on
## www.mixpanel.com - Account -> Projects.
account = mixpanelCreateAccount("ProjectName",
token="c12g3...",
secret="168e7e...",
key="543c55...")
mixpanelUpdateProfile(
account,
"11b9c243-4ea3...",
data=list(
"$set"=list(day=jsonlite::unbox(12),
month=jsonlite::unbox(3),
"$name"=jsonlite::unbox("Dummy name")),
"$setOnce"=list(installYear=2016),
"$unset"=c("oldProp1", "oldProp2"),
"$union"=list(month=10:12)
## "$delete": "" ## !!! Delete user. !!!
)
)
# }
Run the code above in your browser using DataLab