Closed sythel closed 4 years ago
cannot upload csv file anymore for some reason
Ok this is an issue with both the dam names column and without in the csv file, both with my laptop as the server and the shiny2 version. The upload functionality used to work, and I haven't changed any of the related code.
Ok this is an issue with both the dam names column and without in the csv file, both with my laptop as the server and the shiny2 version. The upload functionality used to work, and I haven't changed any of the related code.
Update: upload functionality does not work in 'live' shiny2 version, but the individual input does (move slider bars each time to test). In the local version with my updates, neither works, so something I did must have impacted this function. Troubleshooting this issue within the WSM.R now.
upload functionality worked for me (shiny2.gsscdev.com) can you email me the csv file you were having problems with?
file that worked for me below
"","Sea-Run Fish Habitat Area","River Recreation Area","Reservoir Storage","Annuitized Project Costs","Breach Damage Potential","Number of Properties Impacted","Annual Electricity Generation","CO2 Emissions Reduction","Indigenous Cultural Traditions and Lifeways","Industrial Historical Value","Community Identity","Aesthetic Value","Public Health","Socio-Environmental Justice"
"West Enfield",100,0,0,0,0,0,0,0,0,0,0,0,0,0
"Medway",0,100,0,0,0,0,0,0,0,0,0,0,0,0
"East Millinocket",0,0,100,0,0,0,0,0,0,0,0,0,0,0
"Dolby",0,0,0,100,0,0,0,0,0,0,0,0,0,0
"North Twin",0,0,0,0,100,0,0,0,0,0,0,0,0,0
"Millinocket/Quakish",0,0,0,0,0,100,0,0,0,0,0,0,0,0
"Millinocket Lake",0,0,0,0,0,0,0,0,0,0,0,0,100,0
"Ripogenus",0,0,0,0,0,0,0,0,0,0,0,0,0,100
I see what I did wrong. I tried to get rid of 2 decision criteria (move from 14 to 12) and then use the same test files on the shiny2 version (which I see now obviously wouldn't work). The problem is locally in the new DDST_v4 branch since I'm trying to cut down the set of decision criteria and everywhere else dimensions are specified from 14 to 12 columns.
Edit: Error code is as follows:
Warning: Error in <-: number of items to replace is not a multiple of replacement length 74: WSM [WSM.R#157] 73: generateOutput [C:\Users\Emma\Documents\R_ELF\R_NEST\MCDA_App_Shiny\MCDA_11042019\src\dams_mcda/server.R#1156] 72: observeEventHandler [C:\Users\Emma\Documents\R_ELF\R_NEST\MCDA_App_Shiny\MCDA_11042019\src\dams_mcda/server.R#2027] 1: shiny::runApp
where WSM.R line 157 is AllDataMatrix[,,1] <- simplify2array(WestEnf_DataMatrix)
And, also: `The following objects are masked from ‘package:shiny’:
dataTableOutput, renderDataTable
And, also: `The following objects are masked from ‘package:shiny’:
dataTableOutput, renderDataTable
this is a warning not an error
which could be due to us using some third party table displaying library if i remember correctly
Hmm. I thought it might be related to why my local version was throwing an error but it looks like I resolved it somehow. The app now works in my local version if I input the individual preferences using the slider bars, but the upload file function still isn't working. Continuing to troubleshoot.
added new modals in PR #197
potentially can close this issue after PR is merged
moving file upload problem into a new issue. #196
Is this one that can be closed now?
Re order application init modal, adding upload of data for indiv/group
old method
modal 1. choose indiv/group/upload data
new method
modal 1. choose indiv/group
modal 2. upload or skip