8000 GitHub - zhangzhaorui/dkbi: 蛋壳公寓 BI 算法团队功能包
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
forked from Ethannical/dkbi

蛋壳公寓 BI 算法团队功能包

License

Unknown, MIT licenses found

Licenses found

Unknown
LICENSE
MIT
LICENSE.md
Notifications You must be signed in to change notification settings

z 8000 hangzhaorui/dkbi

 
 

Repository files navigation

dkbi

lifecycle

A general purpose package for Dankegongyu business intelligence unit.

Installation

You can install the development version of dkbi from internal RStudio package manager.

install.packages("dkbi", repos = "<internal-cran>")

Required Variables

By default, dkbi will look for an consul object in your R global environment. It is recommended to set the following system variables in your .Renviron file.

consul.host = "some host"
consul.port = "some port"
consul.swagger = "some swagger"
consul.secret = "some secret"

Common Workflow

dkbi helps to fetch values from KV store and make connection to databases.

library(dkbi)

# initiate config.R to specific path
init_config(path = "R/")

# source configs
source("R/config.R")

# make connection to database
est_mysql_conn("Forecast")
<MySQLConnection:0,0>
# fetch parameters from KV store
get_batch_kv("some_api_params", "host", "port", "swagger")
$host
[1] "some_api_host"

$port
[1] "some_api_port"

$swagger
[1] "some_api_swagger"

Available Commands

library(dkbi)
ls('package:dkbi')
#> [1] "est_mongo_conn" "est_mysql_conn" "get_batch_kv"   "get_kv"        
#> [5] "init_config"    "init_plumber"   "init_script"

About

蛋壳公寓 BI 算法团队功能包

Resources

License

Unknown, MIT licenses found

Licenses found

Unknown
LICENSE
MIT
LICENSE.md

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • R 88.8%
  • Dockerfile 11.2%
0