Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions inst/eDISH_app/modules/renderChart/eDishReport/eDishReport.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,15 @@ safetyGraphics is an open source project built using standard web technology and

<br>

#### Code
#### Code to Reproduce Chart

Use the script below to (1) load your data and (2) render the chart. Make sure to update the first line to point at your data.

```{r, comment=NA, echo=FALSE}
graphic_code <- bquote(eDISH(data = params$data,

writeLines("path <- 'path_to_data'") ### <-- Update this!
writeLines("my_data <- read.csv(file.path(path, 'data.csv'))")
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

to your comment, we could make this line conditional on file extension - e.g. if sas7bdat file, then code could be ```my_data <- haven::read_sas(....)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's an awesome idea. I added #159 for this

graphic_code <- bquote(eDISH(data = my_data,
settings = .(params$settings)))

graphic_code
Expand Down