Deploy to shinyapp.io depending on github package

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)
´´´

I'm not sure how many functions are in the EstudosEletricosPkg, but as a workaround, you could copy all of the functions to an R folder in your app directory. These functions will be sourced when the app initiates and will be available in the app. One downside of this approach is that any changes to the package itself will also need to be made to the functions in the R folder.

See the Functions section from Mastering Shiny.

Thanks for the contribution. However, I'm doing exactly the opposite of what you suggested. I want to remove functions from my program to create a package on github and use it in shinyapp.io.

I misunderstood, my apologies. Below is documentation that may be helpful.

https://docs.posit.co/shinyapps.io/getting-started.html#using-your-r-packages-in-the-cloud

Did any of this change recently, or have issues with Github MFA? I previously was able to install just fine from the Github package repo... but despite de-and-reauthenticating... it recently stopped working. :frowning:

Not that I'm aware of