rte-antares-rpackage / antaresViz

ANTARES Visualizations

Home Page:https://rte-antares-rpackage.github.io/antaresViz

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

appShiny : tsPlot : bug : avec 2 antaresDataList

jalazawa opened this issue · comments

L'utilisation de tsPlot bug avec 2 antaresDataList, un contenant la table cluster et l'autre non.

cluster

Mais si je lance plot directement dans RStudio, le module ne bug pas. J'ai juste un des graphique avec "No data".

Voilà le code

pathS2<-"E:\\ANTARES\\Exemple_antares\\3_petit_exemple\\PackagesR\\Test_packages_R_602"
opts1_C<-setSimulationPath(pathS2, -1 )
myData<-readAntares(areas = "all", clusters = "all")

opts2_C<-setSimulationPath(pathS2, -2 )
myData2<-readAntares(areas = "all")


plot(list(myData, myData2))

Voilà l'erreur si je lance l'application et que j'importe la même chose

> runAppAntaresViz()

Listening on http://127.0.0.1:6428
Warning: Parameter 'horizon' is missing or inconsistent with 'january.1st' and 'leapyear'. Assume correct year is 2030.
To avoid this warning message in future simulations, open the study with Antares and go to the simulation tab, put a valid year number in the cell 'horizon' and use consistent values for parameters 'Leap year' and '1st january'.
Warning in .getTSData(x, dt, variable = variable, elements = elements, uniqueElement = uniqueElem,  :
  You have mc-all data and you specify mcYear, it will be ignored
Warning in .getTSData(x, dt, variable = variable, elements = elements, uniqueElement = uniqueElem,  :
  You have mc-all data and you specify mcYear, it will be ignored
Warning: Error in as.Date.numeric: 'origin' must be supplied
Stack trace (innermost first):
    65: as.Date.numeric
    64: as.Date
    63: validFunc [D:/Users/jalazawa/Documents/Dev/PackagesR/develop/github/manipulateWidget/R/inputs.R#459]
    62: revDepInput$updateValue [D:/Users/jalazawa/Documents/Dev/PackagesR/develop/github/manipulateWidget/R/input_class.R#160]
    61: identical
    60: updateRevDeps [D:/Users/jalazawa/Documents/Dev/PackagesR/develop/github/manipulateWidget/R/input_list_class.R#114]
    59: inputList$setValue [D:/Users/jalazawa/Documents/Dev/PackagesR/develop/github/manipulateWidget/R/input_list_class.R#106]
    58: controller$setValueById [D:/Users/jalazawa/Documents/Dev/PackagesR/develop/github/manipulateWidget/R/controller.R#130]
    57: observerFunc [D:/Users/jalazawa/Documents/Dev/PackagesR/develop/github/manipulateWidget/R/controller.R#279]
     2: shiny::runApp
     1: runAppAntaresViz [D:/Users/jalazawa/Documents/Dev/PackagesR/develop/github/antaresViz/R/runApp.R#11]

Done.

Je ne peux pas tester.

J'ai un bug quand 'j'appuie sur "Launch Analysis"

ERROR: [on_request_read] connection reset by peer
Warning: Error in initInputs: All arguments need to be Input objects.
Stack trace (innermost first):
    67: initInputs [D:/Users/jalazawa/Documents/Dev/PackagesR/develop/github/manipulateWidget/R/init_inputs.R#39]
    66: manipulateWidget [D:/Users/jalazawa/Documents/Dev/PackagesR/develop/github/manipulateWidget/R/manipulate_widget.R#254]
    65: prodStack [D:/Users/jalazawa/Documents/Dev/PackagesR/develop/github/antaresViz/R/stack_prod.R#323]
    58: isolate
    57: observerFunc [D:\Users\jalazawa\Documents\R\win-library\3.4\antaresViz\application/server.R#73]
     2: shiny::runApp
     1: runAppAntaresViz [D:/Users/jalazawa/Documents/Dev/PackagesR/develop/github/antaresViz/R/runApp.R#11]

Idem : il faut installer la dernière version develop de manipulateWidget