Legit reached out to my RStudio contact to get this added to their docs lol.
This commit is contained in:
Carlos R. Mercado 2022-09-06 11:07:17 -04:00
parent 734661e11e
commit 168d5cf7b1
3 changed files with 2 additions and 9 deletions

View File

@ -8,8 +8,7 @@ library(shroomDK)
# gitignored - get your own ShroomDK key from Flipside Crypto!
# for local deployments read your own api_key, for RConnect deployments rely on manual setting of environment variable
ifelse(file.exists('api_key.txt'),api_key <- readLines("api_key.txt"), "")
api_key <- ifelse(file.exists('api_key.txt'),api_key <- readLines("api_key.txt"), Sys.getenv('api_key'))
#423E75 # dark purple
#CECBF5 # light purple

View File

@ -23,11 +23,6 @@ shinyServer(function(input, output, session) {
x$date <- as.Date(x$DAY_)
results$table <- x
}
})
observeEvent(input$test, {
updateTextInput(session, 'address', label = Sys.getenv('api_key'))
})
eoa_stats <- reactive({

View File

@ -51,8 +51,7 @@ shinyUI(fluidPage(
textInput(inputId = "address",
label = NULL,
placeholder = "enter a full address (non-ens)",
width = '400px')),
actionButton('test',"test")
width = '400px'))
),
column(3, class = 'light', id = "go-button",
style = "border-width: 1px 0 1px 0;",