Spaces:
Running
Running
minor tweak
Browse files
app/app.R
CHANGED
@@ -22,15 +22,18 @@ library(Rnumerai)
|
|
22 |
|
23 |
|
24 |
# Options
|
25 |
-
options(datatable.showProgress = FALSE)
|
26 |
options(timeout = 100000000)
|
27 |
-
|
|
|
|
|
|
|
28 |
|
29 |
|
30 |
# ==============================================================================
|
31 |
# Helper Functions
|
32 |
# ==============================================================================
|
33 |
|
|
|
34 |
# Download raw data
|
35 |
download_raw_data <- function(model_name) {
|
36 |
|
@@ -49,6 +52,7 @@ download_raw_data <- function(model_name) {
|
|
49 |
|
50 |
}
|
51 |
|
|
|
52 |
# Reformat
|
53 |
reformat_data <- function(d_raw) {
|
54 |
|
@@ -92,6 +96,7 @@ reformat_data <- function(d_raw) {
|
|
92 |
|
93 |
}
|
94 |
|
|
|
95 |
# Generate Colour Palette
|
96 |
gen_custom_palette <- function(ls_model) {
|
97 |
|
@@ -210,7 +215,7 @@ ui <- shinydashboardPlus::dashboardPage(
|
|
210 |
|
211 |
pickerInput(inputId = "model",
|
212 |
label = " ",
|
213 |
-
choices =
|
214 |
multiple = TRUE,
|
215 |
width = "100%",
|
216 |
options = list(
|
|
|
22 |
|
23 |
|
24 |
# Options
|
|
|
25 |
options(timeout = 100000000)
|
26 |
+
|
27 |
+
|
28 |
+
# Pre-download all usernames
|
29 |
+
ls_username <- sort(Rnumerai::get_leaderboard()$username)
|
30 |
|
31 |
|
32 |
# ==============================================================================
|
33 |
# Helper Functions
|
34 |
# ==============================================================================
|
35 |
|
36 |
+
|
37 |
# Download raw data
|
38 |
download_raw_data <- function(model_name) {
|
39 |
|
|
|
52 |
|
53 |
}
|
54 |
|
55 |
+
|
56 |
# Reformat
|
57 |
reformat_data <- function(d_raw) {
|
58 |
|
|
|
96 |
|
97 |
}
|
98 |
|
99 |
+
|
100 |
# Generate Colour Palette
|
101 |
gen_custom_palette <- function(ls_model) {
|
102 |
|
|
|
215 |
|
216 |
pickerInput(inputId = "model",
|
217 |
label = " ",
|
218 |
+
choices = ls_username,
|
219 |
multiple = TRUE,
|
220 |
width = "100%",
|
221 |
options = list(
|