Integrating R code with Shiny app

However, it works if I do not right the second conditional. That makes me think again that the error is in the way the second conditional asks -if(returnValue == TRUE). there must be another way of asking the question.

I found out that the type of the variable pass = FALSE or TRUE is logical. How do you test a logical value for TRUE or FALSE?

Solved. I got it. Instead of if(pass == TRURE) I should use if(isTRUE(TRUE))

Hi, How do I get the name of an uploaded file in shiny? I am using input$file$name in the function call but it does not work. It works if I send as parameter the name of the file, instead input$file$name. Please see working example

observeEvent(input$value,{
   if(input$value == 'Y'){
     inFile = input$file
     inFileName = inFile$name
     result <- glycoPipe("PARAMS.tsv")
     returnedValue = result$params
     output$box <- renderText({
       paste("Your result is ", returnedValue)
     }
     )
    }
  })