You can create reactive values with them and then call the reactive values inside of the renderText (or any other render, reactive, or observe functions).
inFile <- reactive({input$file})
inFileName <- reactive({input$file$name})
output$invalidFile <- renderText({
result <- glycoPipe(inFileName())
if(result$validFile == FALSE){
result$invalidParamsFile
}
})
output$pathOutput <- renderText({
result <- glycoPipe(inFileName())
result$outputPath
})
It is worth noting that you don't have to assign those variables in each render function or their own reactive functions, you could just pass input$file$name directly into your glycoPipe functions