- Simple and user-friendly web application
- Built with R and Shiny
- Calculates the square of a given number
2023-11-04
# An example widget definition from ui.R
numericInput("num", "Enter a number:", 1)
# A calculation function from server.R
observeEvent(input$calculate, {
num <- as.numeric(input$num)
output$square <- renderText({
paste("The square of", num, "is:", num^2)
})
})
Experience the simplicity and effectiveness of the Square Calculator App.
# Simple square calculation input_num <- 5 squared_value <- input_num ^ 2 squared_value
## [1] 25