README.md

RSegmentIO

A consistent and safe way to interact with Segment.com (formally Segment.IO)

Setup

1) install and Load Library Locally

Add library to your local project

devtools::install_github("ac21/RSegmentIO")
library(RSegmentIO)

2) Setup Environmental Variables

SEGMENT_WRITEKEY="valid-write-key"

Configuring project-only environmental variables for RStudio

To setup local environmental variables just for a given R package, you can create a .Renviron file and store the above variables

Usage

Call Identify

# call Identify with a trait of 'status' equal to 'closed' 
identify(
  userId = 'fake_uuid',
  traits = list(status = 'closed')
)


ac21/RSegmentIO documentation built on May 10, 2019, 5:09 a.m.