Giter Site home page Giter Site logo

dpi's Introduction

dpi

Lifecycle: experimental R-CMD-check

The goal of dpi is to provide a programmatic interface to data products built within Data-as-a-Product framework

Installation

For released version

remotes::install_github("amashadihossein/dpi")

For dev version

remotes::install_github("amashadihossein/dpi", ref = "dev")

Example

library(dpi)

# Add your AWS profile name. If you don't have a named profile, you can provide your AWS credentials
aws_creds <- creds_set_aws(
  key = Sys.getenv("AWS_KEY"),
  secret = Sys.getenv("AWS_SECRET")
)

# Get the list of board parameters
board_params <- board_params_set_s3(
  bucket_name = "bucket_name",
  region = "specific_region" # e.g. "us-east-1"
)

# Connect to the board
board_object <- dp_connect(board_params = board_params, creds = aws_creds)

# List what's available on the board
dp_list(board_object = board_object)

# Retrieve the latest data. Alternatively retrieve specific version by passing
# the version id to dp_get
dp_get(
  board_object = board_object,
  data_name = "dp-studyid_branchid",
  version = "specific_version" # e.g. "c5a51c3"
)

Related documentation

dpi's People

Contributors

camorosi avatar amashadihossein avatar amorosc1 avatar geauxdojang avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.