Skip to content

clarify code section of html report #149#157

Merged
pburnsdata merged 3 commits intodev-v0.8.0from
exported-code
Feb 6, 2019
Merged

clarify code section of html report #149#157
pburnsdata merged 3 commits intodev-v0.8.0from
exported-code

Conversation

@pburnsdata
Copy link
Copy Markdown
Contributor

Issues

#149

Part of me wonders if it should clarify that your data loading process will vary (just using csv as an example) but maybe that's obvious?

@jwildfire
Copy link
Copy Markdown
Contributor

@pburnsdata Tweaked it a bit and approved. Look ok?

Copy link
Copy Markdown
Contributor

@jwildfire jwildfire left a comment

Choose a reason for hiding this comment

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

👍

Minor tweaks committed.

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

@pburnsdata pburnsdata merged commit 403aa1c into dev-v0.8.0 Feb 6, 2019
@pburnsdata pburnsdata deleted the exported-code branch February 6, 2019 19:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants