Spaces:
Sleeping
Sleeping
Hot fix Server.R (#1)
Browse files- Hot fix Server.R (edc7df490e613df5e6b15d250febaa29ca4cdeda)
Co-authored-by: Inmaculada Santamaria-Valenzuela <[email protected]>
- r_shiny_app/server.R +7 -5
r_shiny_app/server.R
CHANGED
|
@@ -745,17 +745,19 @@ shinyServer(function(input, output, session) {
|
|
| 745 |
# Create a reduced window list
|
| 746 |
reduced_window_list <- vector(mode = "list", length = length(idx_window_limits)-1)
|
| 747 |
# Populate the first element of the list with the idx of the first window.
|
| 748 |
-
reduced_window_list[[1]]
|
| 749 |
-
|
|
|
|
|
|
|
| 750 |
# Populate the rest of the list
|
| 751 |
for (i in 2:(length(idx_window_limits)-1)){
|
| 752 |
reduced_window_list[[i]]<- c(
|
| 753 |
#unlist_window_indices[idx_window_limits[i]+1],
|
| 754 |
#unlist_window_indices[idx_window_limits[i+1]]
|
| 755 |
-
|
| 756 |
-
|
| 757 |
)
|
| 758 |
-
}
|
| 759 |
reduced_window_list
|
| 760 |
})
|
| 761 |
|
|
|
|
| 745 |
# Create a reduced window list
|
| 746 |
reduced_window_list <- vector(mode = "list", length = length(idx_window_limits)-1)
|
| 747 |
# Populate the first element of the list with the idx of the first window.
|
| 748 |
+
reduced_window_list[[1]] = c(
|
| 749 |
+
isolate(tsdf())$timeindex[unlist_window_indices[idx_window_limits[1]+1]],
|
| 750 |
+
isolate(tsdf())$timeindex[unlist_window_indices[idx_window_limits[2]]]
|
| 751 |
+
)
|
| 752 |
# Populate the rest of the list
|
| 753 |
for (i in 2:(length(idx_window_limits)-1)){
|
| 754 |
reduced_window_list[[i]]<- c(
|
| 755 |
#unlist_window_indices[idx_window_limits[i]+1],
|
| 756 |
#unlist_window_indices[idx_window_limits[i+1]]
|
| 757 |
+
isolate(tsdf())$timeindex[unlist_window_indices[idx_window_limits[i]+1]],
|
| 758 |
+
isolate(tsdf())$timeindex[unlist_window_indices[idx_window_limits[i+1]]]
|
| 759 |
)
|
| 760 |
+
}
|
| 761 |
reduced_window_list
|
| 762 |
})
|
| 763 |
|