library(shiny)# Define UI for application that draws a histogramui <- fluidPage(# Application titletitlePanel("Old Faithful Geyser Data"),# Sidebar with a slider input for number of binssidebarLayout(sidebarPanel(sliderInput("bins","Number of bins:",min = 1,max = 50,value = 30)),# Show a plot of the generated distributionmainPanel(plotOutput("distPlot"))))# Define server logic required to draw a histogramserver <- function(input, output) {library(Ruchardet)output$distPlot <- renderPlot({# generate bins based on input$bins from ui.Rx <- faithful[, 2]bins <- seq(min(x), max(x), length.out = input$bins + 1)# draw the histogram with the specified number of binshist(x, breaks = bins, col = 'darkgray', border = 'white')})}# Run the applicationshinyApp(ui = ui, server = server)
Preparing to deploy application...DONEUploading bundle for application: 382513...Detecting system locale ... DONEDeploying bundle: 1484483 for application: 382513 ...Waiting for task: 537695746building: Building package: Ruchardet################################ Begin Task Log ################################[2018-07-17T14:42:30.868777404+0000] Installing R package: digest (0.6.15)* installing to library �/opt/R/3.4.1/lib/R/library�* installing *binary* package �digest� ...* DONE (digest)[2018-07-17T14:42:31.090443467+0000] Installing R package: sourcetools (0.1.6)* installing to library �/opt/R/3.4.1/lib/R/library�* installing *binary* package �sourcetools� ...* DONE (sourcetools)[2018-07-17T14:42:31.336114169+0000] Installing R package: jsonlite (1.5)* installing to library �/opt/R/3.4.1/lib/R/library�* installing *binary* package �jsonlite� ...* DONE (jsonlite)[2018-07-17T14:42:31.628327586+0000] Installing R package: Rcpp (0.12.17)* installing to library �/opt/R/3.4.1/lib/R/library�* installing *binary* package �Rcpp� ...* DONE (Rcpp)[2018-07-17T14:42:32.723088586+0000] Installing R package: mime (0.5)* installing to library �/opt/R/3.4.1/lib/R/library�* installing *binary* package �mime� ...* DONE (mime)[2018-07-17T14:42:32.905368678+0000] Building R package: Ruchardet (0.0-3)/mnt/packages/build /mnt* installing to library �/opt/R/3.4.1/lib/R/library�* installing *source* package �Ruchardet� ...** package �Ruchardet� successfully unpacked and MD5 sums checkedchecking for gcc... gccchecking whether the C compiler works... yeschecking for C compiler default output file name... a.outchecking for suffix of executables...checking whether we are cross compiling... nochecking for suffix of object files... ochecking whether we are using the GNU C compiler... yeschecking whether gcc accepts -g... yeschecking for gcc option to accept ISO C89... none neededchecking how to run the C preprocessor... gcc -Echecking whether make sets $(MAKE)... yeschecking for ranlib... ranlibchecking for Rscript... noconfigure: error: Rscript not found, is R installed?ERROR: configuration failed for package �Ruchardet�* removing �/opt/R/3.4.1/lib/R/library/Ruchardet�################################# End Task Log #################################Erreur : Unhandled Exception: Child Task 537695747 failed: Error building image: Error building Ruchardet (0.0-3). Build exited with non-zero status: 1De plus : Warning message:Error detecting locale: Error in read.table(file = file, header = header, sep = sep, quote = quote, : incomplete final line found by readTableHeader on 'raw'(Using default: en_US)Ex�cution arr�t�e