Skip to content

R client for Segment.com (formally Segment.IO)

Notifications You must be signed in to change notification settings

ac21/RSegmentIO

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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')
)

About

R client for Segment.com (formally Segment.IO)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages