Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Shiny reactive #35

Merged
merged 11 commits into from
Nov 29, 2019
Merged

Shiny reactive #35

merged 11 commits into from
Nov 29, 2019

Conversation

Robinlovelace
Copy link
Member

No description provided.

@Robinlovelace
Copy link
Member Author

The new tab is there, great work. I would make some changes:

  • Call it 'Health impacts' not scenarios
  • Not repeat the UI components that are in the map tab, be dry!
  • Add some results

Here's what I see so far:

image

@mpadge
Copy link
Member

mpadge commented Nov 29, 2019

@Robinlovelace can you please check that out now. I actually only had to made the new plot reactive; all the rest could be left as is, which is great. I'd prefer if this could be merged subject to your approval at this stage, with a second iteration working out what we can sensibly add to the second ("Health Impacts") panel. At present it's just the bare essence as proof of principle.

download.file (u, destfile = file.path (path, nm))
f <- system.file (nm, package = "upthat")
}
mode_shift <- read.csv (f)
Copy link
Member

Choose a reason for hiding this comment

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

@Robinlovelace Note that this function auto-downloads the scenario results into /inst the first time it's run. I think this is a sensible approach, as it takes no time to download, and ensures we only need to keep the one master file updated. Feel free to suggest alternative approaches if you'd prefer

Copy link
Member Author

Choose a reason for hiding this comment

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

Sounds sensible, extensible and future proof, good thinking 🚀

@mpadge mpadge self-requested a review November 29, 2019 12:10
@mpadge
Copy link
Member

mpadge commented Nov 29, 2019

@Robinlovelace ha, i didn't realise you'd started the PR when i tried but failed to request your review of this... Anyway, please review!

Copy link
Member Author

@Robinlovelace Robinlovelace left a comment

Choose a reason for hiding this comment

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

Looking good @mpadge

download.file (u, destfile = file.path (path, nm))
f <- system.file (nm, package = "upthat")
}
mode_shift <- read.csv (f)
Copy link
Member Author

Choose a reason for hiding this comment

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

Sounds sensible, extensible and future proof, good thinking 🚀

@Robinlovelace
Copy link
Member Author

Happy to merge pending a test I plan to do now. If it's not too much effort can you make the style consistent with the rest of the package so we don't have 2 styles in 1 package? Can fix that post merge also.

@mpadge
Copy link
Member

mpadge commented Nov 29, 2019

Oh yeah, sorry, I'll definitely fix the style before merge. Gotta do some other stuff first, but will get to that later today. Thanks

@Robinlovelace
Copy link
Member Author

Thanks, will await another ping before merging.

@mpadge
Copy link
Member

mpadge commented Nov 29, 2019

Pinged on commit. Should be good now

@mpadge
Copy link
Member

mpadge commented Nov 29, 2019

Merge away lad....

@Robinlovelace
Copy link
Member Author

Just testing...

@Robinlovelace Robinlovelace merged commit fae5152 into master Nov 29, 2019
@Robinlovelace
Copy link
Member Author

Looking good, I've merged and all seems to work. Good job 🚀

@Robinlovelace
Copy link
Member Author

There are some issues, however, that I've bundled into an issue here: #38

@Robinlovelace Robinlovelace deleted the shiny-reactive branch November 29, 2019 16:17
@Robinlovelace
Copy link
Member Author

BTW apologies @mpadge I meant "One for here?: r-lib/styler#340 " definitely a 'for another day' though, and overall this is a huge step forward, thanks for adding the new tab!

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.

2 participants