I'm trying to deploy the shiny below on shinyapp.io, but I'm getting the following error: Erro: Unhandled Exception: Child Task 1318483841 failed: Error building image: Error building EstudosEletricosPkg (0.0.0.9000). Build exited with non-zero status: 1.
EstudosEletricosPkg is a package created by me to perform some simple tests. One of the tests is to see if I can deploy a shiny that depends on a github package.
I don't know if the EstudosEletricosPkg package has any restrictions, I don't have experience in creating packages, but the package worked on my machine.
library(shiny)
library(devtools)
library(remotes)
library(EstudosEletricosPkg)
# devtools::install_github("Gabryel-Garcia/EstudosEletricosPkg")
# Interface do aplicativo Shiny
ui <- fluidPage(
sidebarLayout(
sidebarPanel(
numericInput("numero1", "Digite o primeiro número:", value = 0),
numericInput("numero2", "Digite o segundo número:", value = 0)
),
mainPanel(
verbatimTextOutput("resultado")
)
)
)
# Servidor do aplicativo Shiny
server <- function(input, output) {
output$resultado <- renderPrint({
resultado <- EstudosEletricosPkg::soma(input$numero1, input$numero2)
# resultado <- soma(input$numero1, input$numero2)
return(resultado)
})
}
# Executando o aplicativo Shiny
shinyApp(ui = ui, server = server)
´´´