Skip to content

Commit

Permalink
fixing lintr, styler and run document()
Browse files Browse the repository at this point in the history
  • Loading branch information
kartikeyakirar committed May 14, 2024
1 parent 82715e1 commit 910a24b
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 7 deletions.
1 change: 0 additions & 1 deletion R/LoadReporterModule.R
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,6 @@ load_json_report <- function(reporter, zip_path, filename) {
)
}
)

} else {
shiny::showNotification("Failed to load the Reporter file.", type = "error")
}
Expand Down
6 changes: 2 additions & 4 deletions R/SimpleReporter.R
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,7 @@ NULL
#' @rdname simple_reporter
#' @export
simple_reporter_ui <- function(
id
) {
id) {
ns <- shiny::NS(id)
shiny::tagList(
shiny::singleton(
Expand Down Expand Up @@ -73,8 +72,7 @@ simple_reporter_srv <- function(
author = "NEST", title = "Report",
date = as.character(Sys.Date()), output = "html_document",
toc = FALSE
)
) {
)) {
shiny::moduleServer(
id,
function(input, output, session) {
Expand Down
2 changes: 1 addition & 1 deletion vignettes/teal-reporter-blocks-overview.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ report_card$append_text("Header 2 text", "header2")
report_card$append_text("A paragraph of default text")
report_card$append_plot(
ggplot(airquality, aes(x = Ozone, y = Solar.R)) +
geom_line(na.rm = T)
geom_line(na.rm = TRUE)
)
report_card$append_table(airquality)
report_card$append_rcode("airquality_new <- airquality", echo = FALSE)
Expand Down
2 changes: 1 addition & 1 deletion vignettes/teal-reporter.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ vignette: >

## Introduction
While engaging with data analysis within a `shiny` app,
users often encounter insights that they wish to capture and share, be it through presentations, `markdown` articles, or other formats.
users often encounter insights that they wish to capture and share, be it through's presentations, `markdown` articles, or other formats.
The `teal.reporter` package simplifies the process for both developers and end-users of `shiny` applications.
It allows for easy generation and dissemination of findings.
This eliminates the need for manual copy-pasting or writing in markdown.
Expand Down

0 comments on commit 910a24b

Please sign in to comment.