Git Product home page Git Product logo

Comments (3)

sbihorel avatar sbihorel commented on August 30, 2024

Hi,
Did you check the content of the shiny log when your app failed with the new version of rclipboard? If so, can you please share it? There is not much I can and will do without the actual error.
The package passed all build checks on linux, windows, and Mac (the arm check is still pending), so it seems like the issue is specific to your workflow.

from rclipboard.

sbihorel avatar sbihorel commented on August 30, 2024

I can't say I have used Docker to build Shiny apps in the past but looking at the link you sent, I could not help but notice that your CRAN environment variable seems to target a time stamp of package manager that predates the release of rclipboard 1.0.4...

ENV CRAN=https://packagemanager.rstudio.com/cran/__linux__/focal/2021-10-29

Could you try to update this path and recompile with the new version of rclipboard?

from rclipboard.

can-taslicukur avatar can-taslicukur commented on August 30, 2024

Hi thank you for answering. I'have recreated the example app on readme with docker to investigate the issue. And there were no errors. You are right the issue is likely specific to my workflow. I will close this issue now. I am sorry for creating a false alarm

App.R

library(rclipboard)
library(shiny)

# The UI
ui <- bootstrapPage(

  rclipboardSetup(),

  # Add a text input
  textInput("copytext", "Copy this:", "Zlika!"),

  # UI ouputs for the copy-to-clipboard buttons
  uiOutput("clip"),

  # A text input for testing the clipboard content.
  textInput("paste", "Paste here:")

)

# The server
server <- function(input, output) {

  # Add clipboard buttons
  output$clip <- renderUI({
    rclipButton(
      inputId = "clipbtn",
      label = "rclipButton Copy",
      clipText = input$copytext,
      icon = icon("clipboard")
    )
  })
}

shinyApp(ui = ui, server = server)

Dockerfile

# Base image https://hub.docker.com/u/rocker/
FROM rocker/shiny:4.1.1

COPY app.R ./app.R
COPY renv.lock ./renv.lock

RUN Rscript -e 'install.packages("renv")'
RUN Rscript -e 'renv::consent(provided = TRUE)'
RUN Rscript -e 'renv::restore()'

# expose port
EXPOSE 3838

# run app on container start
CMD ["R","-e", "shiny::runApp('app.R', host = '0.0.0.0', port = 3838)"]

from rclipboard.

Related Issues (16)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.