Skip to content

Commit

Permalink
added event tracking example
Browse files Browse the repository at this point in the history
  • Loading branch information
marton-balazs-kovacs committed Mar 21, 2023
1 parent 56daebb commit 04fbd70
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 20 deletions.
5 changes: 2 additions & 3 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,11 @@ Imports:
lifecycle,
rlang,
stats
RoxygenNote: 7.1.2
RoxygenNote: 7.2.1
Suggests:
testthat,
knitr,
rmarkdown,
covr
rmarkdown
URL: https://github.com/marton-balazs-kovacs/tenzing
BugReports: https://github.com/marton-balazs-kovacs/tenzing/issues
VignetteBuilder: knitr
Expand Down
6 changes: 5 additions & 1 deletion R/mod_credit_roles.R
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,11 @@ mod_credit_roles_ui <- function(id){
NS(id, "show_report"),
label = "Show author contributions text",
class = "btn btn-primary btn-validate")
)
) %>%
tagAppendAttributes(
# Track click event with Matomo
onclick = "_paq.push(['trackEvent', 'Output', 'Click show', 'Author information'])"
)
)
}

Expand Down
2 changes: 1 addition & 1 deletion R/mod_read_spreadsheet.R
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ mod_read_spreadsheet_server <- function(id) {
# Upload button label ---------------------------
output$upload_label <- renderText({
if (input$which_input == "Local file") {
paste("Use the spreadsheet", icon("fas fa-upload", lib = "font-awesome"))
paste("Process spreadsheet")
} else if (input$which_input == "URL") {
paste("Upload from URL", icon("fas fa-upload", lib = "font-awesome"))
}
Expand Down
14 changes: 0 additions & 14 deletions codecov.yml

This file was deleted.

2 changes: 1 addition & 1 deletion dev/02_dev.R
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ usethis::use_package("markdown")
usethis::use_package("lifecycle")
usethis::use_package("rlang")
usethis::use_package("stats")
usethis::use_package("covr", "Suggests")
# usethis::use_package("covr", "Suggests")
usethis::use_pipe()

## 2.3 Add tests
Expand Down

0 comments on commit 04fbd70

Please sign in to comment.