Skip to content

Commit

Permalink
added suggested citation
Browse files Browse the repository at this point in the history
  • Loading branch information
msorlien committed Mar 30, 2023
1 parent 93523aa commit 6c6d83f
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
.Rproj.user
.Rhistory
.RData
rsconnect
rsconnect
data-raw/data_num_db.rds
data-raw/data_text_db.rds
data-raw/parameters_db.rds
data-raw/sites_db.rds
10 changes: 10 additions & 0 deletions R/mod_brcDownload.R
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ BRCDOWNLOAD_UI <- function(id) {

tagList(
h2('Suggested Citation'),
textOutput(ns('brc_citation')),
h2('Download Data'),
downloadButton(ns('dl_xls'), 'Download excel'),
downloadButton(ns('dl_csv'), 'Download csv'),
Expand All @@ -34,6 +35,15 @@ BRCDOWNLOAD_SERVER <- function(id, brc_data_num, brc_data_text, brcvar) {
id,
function(input, output, session) {

# Citation ----
output$brc_citation <- renderText({
paste0("Blackstone River Coalition, ", format(Sys.time(), "%Y"),
", Blackstone River Watershed-wide Volunteer Water Quality
Monitoring Program data available on the world wide web, accessed [",
format(Sys.time(), "%B %d, %Y"),
"], at URL [https://zaptheblackstone.org].")
})

# Format data ----
# * Site data ----
df_site <- reactive({
Expand Down
Binary file modified data/brc_data_num.rda
Binary file not shown.
Binary file modified data/brc_data_score.rda
Binary file not shown.
Binary file modified data/brc_sites.rda
Binary file not shown.

0 comments on commit 6c6d83f

Please sign in to comment.