A consistent and safe way to interact with Segment.com (formally Segment.IO)
Add library to your local project
devtools::install_github("ac21/RSegmentIO") library(RSegmentIO)SEGMENT_WRITEKEY="valid-write-key" To setup local environmental variables just for a given R package, you can create a .Renviron file and store the above variables
# call Identify with a trait of 'status' equal to 'closed' identify( userId = 'fake_uuid', traits = list(status = 'closed') )