-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Can download csv with output from multiple runs. Currently only works if dataframes are same length (so year range isn't changed)
- Loading branch information
1 parent
60267ce
commit bbcf001
Showing
6 changed files
with
60 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# Download outputs as a csv file | ||
|
||
download_ui <- function(id) { | ||
ns <- NS(id) | ||
|
||
tagList( | ||
downloadButton(ns("download"), "Download Outputs") | ||
) | ||
} | ||
|
||
download_server <- function(id, r6) { | ||
moduleServer(id, function(input, output, session) { | ||
output$download <- downloadHandler( | ||
filename = "hectorUI_output.csv", | ||
content = function(file) { | ||
write.csv(r6$output,file) | ||
} | ||
|
||
) | ||
}) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters