README.md

flyrod

Travis build status

flyrod reads and writes file to Azure Data Lake Storage (Gen 1)

Installation

You can install flyrod with:

library(devtools)
install_github("alexhallam/flyrod")

Example

This is a basic example which shows you how to solve a common problem:

library(flyrod)
library(dplyr)
library(readr)

# set token
set_adl_token(tenant = "abc123", client_id = "abc123", client_secret = "abc123")

# make dataframe
data(starwars)
s <- starwars %>% 
  select(name, mass, hair_color, skin_color, eye_color, gender, homeworld, species)

# write to adl
s %>% write_adl_delim(adl_file_path =  "adl://analyticsadl01.azuredatalakestore.net/temp/all_flyrod_tests/starwars.csv", delim = "|")

# read from adl
df <- read_adl_delim(adl_file_path =  "adl://analyticsadl01.azuredatalakestore.net/temp/all_flyrod_tests/starwars.csv", delim = "|")

Future Work



alexhallam/flyrod documentation built on Nov. 20, 2019, 7:33 a.m.