我一直试图解决我的问题2天,但我被封锁了。 我使用了很多技术来追踪和发现我的错误。我无法解决最后一个问题。 我无法向您展示我的应用程序(因为受保护的信息)但我可以向您显示我的日志:
2017-11-17T12:30:42.395529+00:00 shinyapps[236114]: RECV {"method":"update","data":{"Refresh:shiny.action":2}}
2017-11-17T12:30:42.399510+00:00 shinyapps[236114]: SEND {"custom":{"shinyjs-enable":{"id":"resCheck1"}}}
2017-11-17T12:30:42.400628+00:00 shinyapps[236114]: SEND {"custom":{"shinyjs-enable":{"id":"resCheck2"}}}
2017-11-17T12:30:42.401726+00:00 shinyapps[236114]: SEND {"custom":{"shinyjs-disable":{"id":"resCheck3"}}}
2017-11-17T12:30:42.402768+00:00 shinyapps[236114]: SEND {"custom":{"shinyjs-disable":{"id":"resCheck4"}}}
2017-11-17T12:30:42.403806+00:00 shinyapps[236114]: SEND {"custom":{"shinyjs-disable":{"id":"resCheck5"}}}
2017-11-17T12:30:42.404840+00:00 shinyapps[236114]: SEND {"custom":{"shinyjs-disable":{"id":"resCheck6"}}}
2017-11-17T12:30:42.409212+00:00 shinyapps[236114]: SEND {"custom":{"shinyjs-show":{"id":"Table1"}}}
2017-11-17T12:30:42.410277+00:00 shinyapps[236114]: SEND {"custom":{"shinyjs-show":{"id":"Table2"}}}
2017-11-17T12:30:42.411293+00:00 shinyapps[236114]: SEND {"custom":{"shinyjs-show":{"id":"Table3"}}}
2017-11-17T12:30:42.412261+00:00 shinyapps[236114]: SEND {"custom":{"shinyjs-show":{"id":"Table4"}}}
2017-11-17T12:30:42.413233+00:00 shinyapps[236114]: SEND {"custom":{"shinyjs-show":{"id":"Table5"}}}
2017-11-17T12:30:42.414218+00:00 shinyapps[236114]: SEND {"custom":{"shinyjs-show":{"id":"Table6"}}}
2017-11-17T12:30:42.415206+00:00 shinyapps[236114]: SEND {"custom":{"shinyjs-show":{"id":"Table7"}}}
2017-11-17T12:30:42.988820+00:00 shinyapps[236114]: Warning: Specifying width/height in layout() is now deprecated.
2017-11-17T12:30:42.990293+00:00 shinyapps[236114]: Warning in origRenderFunc() :
2017-11-17T12:30:42.989834+00:00 shinyapps[236114]: SEND {"progress":{"type":"close","message":{"id":"18d29890333552a1","style":"notification"}}}
2017-11-17T12:30:42.988824+00:00 shinyapps[236114]: Please specify in ggplotly() or plot_ly()
2017-11-17T12:30:42.990320+00:00 shinyapps[236114]: Ignoring explicitly provided widget ID "10958d701"; Shiny doesn't use them
2017-11-17T12:30:43.073852+00:00 shinyapps[236114]: SEND {"recalculating":{"name":"plot2","status":"recalculating"}}
2017-11-17T12:30:43.061909+00:00 shinyapps[236114]: SEND {"recalculating":{"name":"resultatNull1","status":"recalculating"}}
2017-11-17T12:30:43.060594+00:00 shinyapps[236114]: SEND {"recalculating":{"name":"plot1","status":"recalculated"}}
2017-11-17T12:30:43.071686+00:00 shinyapps[236114]: SEND {"recalculating":{"name":"table2","status":"recalculating"}}
2017-11-17T12:30:43.070562+00:00 shinyapps[236114]: SEND {"recalculating":{"name":"resultatNull1","status":"recalculated"}}
2017-11-17T12:30:43.072729+00:00 shinyapps[236114]: SEND {"recalculating":{"name":"table2","status":"recalculated"}}
2017-11-17T12:30:43.075189+00:00 shinyapps[236114]: SEND {"progress":{"type":"open","message":{"id":"fc51ab4582ef7a14","style":"notification"}}}
2017-11-17T12:30:43.076200+00:00 shinyapps[236114]: SEND {"progress":{"type":"update","message":{"id":"fc51ab4582ef7a14","message":"Patientez quelques instants...","style":"notification"}}}
2017-11-17T12:30:43.152755+00:00 shinyapps[236114]: We recommend that you use the dev version of ggplot2 with `ggplotly()`
2017-11-17T12:30:43.152758+00:00 shinyapps[236114]: Install it with: `devtools::install_github('hadley/ggplot2')`
当我点击按钮刷新我的输出完成。但是当我在不改变任何输入的情况下点击之后,应用程序就会停止。
非常感谢!
答案 0 :(得分:1)
我通过在调用库之前在global.R脚本中添加此选项来解决我的问题:
@objc func getImage() {
imagePicker.sourceType = UIImagePickerControllerSourceType.photoLibrary
imagePicker.allowsEditing = false
imagePicker.modalPresentationStyle = .overCurrentContext
present(imagePicker, animated: true)
}
func imagePickerController(_ picker: UIImagePickerController, didFinishPickingMediaWithInfo info: [String : Any]) {
if let image = info[UIImagePickerControllerOriginalImage] as? UIImage {
imageView.image = image
}
self.dismiss(animated: true, completion: nil);
}
使用“xlsx”包与问题相关联。