Make conditionalPanel depend on files uploaded with fileInput

You have to make a reactive output returning the status of the uploading and set the option suspendWhenHidden of this output to FALSE. More precisely, in server.R you surely have a reactive function, say getData() to make a dataframe from the uploaded file. Then do this: getData <- reactive({ if(is.null(input$files)) return(NULL) …… }) output$fileUploaded <- … Read more

No App Icon on ActionBar

As of AppCompat version 21, the Action Bar follows the material design guidelines and uses a Toolbar: A title and subtitle. The title should be a signpost for the Toolbar’s current position in the navigation hierarchy and the content contained there. The subtitle, if present should indicate any extended information about the current content. If … Read more

Why does autoReconnect=true not seem to work?

I had the same issue and it was absolutely maddening. Here’s what the docs say on the MySQL website (emphasis mine) Should the driver try to re-establish stale and/or dead connections? If enabled the driver will throw an exception for a queries issued on a stale or dead connection, which belong to the current transaction, … Read more

Read data from CSV file and transform from string to correct data-type, including a list-of-integer column

As the docs explain, the CSV reader doesn’t perform automatic data conversion. You have the QUOTE_NONNUMERIC format option, but that would only convert all non-quoted fields into floats. This is a very similar behaviour to other csv readers. I don’t believe Python’s csv module would be of any help for this case at all. As … Read more

Can we write an EOF character ourselves?

There is no EOF character. EOF by definition “is unequal to any valid character code”. Often it is -1. It is not written into the file at any point. There is a historical EOF character value (CTRL+Z) in DOS, but it is obsolete these days. To answer the follow-up question of Apoorv: The OS never … Read more

Where can I find a Java to C# converter? [closed]

Even if there is such a tool, I’d highly recommend you to do the conversion by hand. Automatic converters will often faithfully reproduce the code, but ignore idioms – because they’d be really, really hard to get right. Furthermore, the differences between generics in .NET and Java could lead to some very different decisions in … Read more