Closed leppott closed 5 years ago
Example from CASTfxn shiny app. Different set up but can use code below as a guide.
UI.R
global.R
Server.R
Moved the "HELP" tab to the front so user is presented with the help tab every time the app is launched.
And implemented the above edits. The ShinyHelp.html file is created in the package "data-raw" folder.
Is your feature request related to a problem? Please describe. A tester tried to create maps without any filters. Lots of questions so need to add "help" text to the app.
Describe the solution you'd like Text at bottom.
Describe alternatives you've considered Might need a separate document as well.
Additional context
In R studio, run these 3 lines to open up the shiny app: library(devtools) library(baytrendsmap) runShiny()
Once open, in tab “1. Import Data” browse to the attached file to use for this initial testing. (After you get it working with the attached file, of course feel free to circle back to trying the other files you got from us.)
Be sure data loaded into the screen after you import.
Click on “2. Filter Data”, and notice that it says “308= Number of entries with more than 1 record”. It’s necessary to filter this data set down until the message here tells you 0 entries have more than 1 record. Our csv files have results for different periods, seasons, models and depths for each station. To make the app work, you need to filter it down to 1 record per station. This may be a little tough if you aren’t familiar with the files because they don’t all contain the same choices.
Make the following selections in the blue buttons on the left in order to filter down this specific file that I’ve attached. a) Filter by ‘Gam Formula Name’: Click Deselect All, then use the drop down to pick just one of these, say “2- Non-linear..” b) Filter by ‘sample Layer’: same thing, deselect, then select just “B”. c) Filter by ‘Period Name’: Select just one of these, say “Full Record” d) Filter by ‘Season Name’: Select just one, “Summer1” is good.
Don’t click the bottom button, but scroll back to the top and click “Apply Filters”. Now you should see the text say 0=Number of entries with more than 1 record.
Click on the 2nd blue tab called “Filter Data”. This is now the table of data that will be mapped.
Click on “Range Map”. I found you have to make a selection in each of the blue boxes under 3.a. Range Map Options. I got an error when I skipped one. Make a selection for each, they should all work. Then click “Update Range Map” at the top. If you still get errors here, let me know.
Click on the “Trend Map” tab. Here I also found I got an error if I didn’t make an initial selection in any one of the blue boxes. So pick something in each, and click “update trend map”.