Deploy Rshiny App :Error Building Hunspell(2.7) - r

The code works properly in the RStudio IDE but when deploying the RShiny app it generates this error
Error: Unhandled Exception: Child Task 499025532 failed: Error building image: Error building hunspell (2.7). Build exited with non-zero status: 1
I am a newbie and my App works on sentiment analysis based on text2vec package and also generates wordcloud.
Is there any way to overcome this?
Package dependencies for the app are:
> package version source
1 packrat 0.4.8-1 CRAN
Thanks in advance

Related

Bioconductor package installation : missing repository

I am trying to publish a shiny app, but getting the following error. My code is working fine in Rstudio though. Only get this error when I try to publish it.
install.packages("BiocManager")
BiocManager::install("Rgraphviz")
Error: Unhandled Exception: Child Task 1195199124 failed: Error parsing manifest: Unable to determine package source for Bioconductor package BiocGenerics: Repository must be specified
Execution halted
How can I solve this problem? How to specify a repository? TIA
Before publishing your app, run options(repos = BiocManager::repositories()) on your console. Do NOT copy this code to your app scripts. Then, publish your app. No need of install.packages("BiocManager") or BiocManager::install("Rgraphviz")

Error: package or namespace load failed for �shiny�: When Deploying Shiny App

I am trying to deploy a shiny app onto shinyapps.io but I get the following output in Deploy tab:
Error: package or namespace load failed for �shiny�:
.onLoad failed in loadNamespace() for 'shiny', details:
call: .Call("_httpuv_getRNGState", PACKAGE = "httpuv")
error: "_httpuv_getRNGState" not available for .Call() for package "httpuv"
Error: loading failed
Execution halted
The app I am trying to deploy is the template/draft app you get when you start a new shiny web app file from RStudio. At first I thought the cause of the error might be something in my original apps that I tried to upload.
Would anyone be able to assist in fixing or at least explaining what might be causing the error.
I don't have enough reputation points to just leave a comment, but if you search Google for your error lots of information comes up (i.e. here or here). It appears to be either an error with the install of httpuv or one of the packages it is linked to (such as Rcpp or later), so update those packages and see if that works.

Error building image: Error building rlang - not available on R 3.5.0 (Uploading shiny)

I have updated my R to the version 3.5.0 because of all the good things I have heard about it. Actually everything is OK until now. The problem is that I am trying to upload my shiny dashboard to shinyapps.io and I'm getting the following error:
Preparing to deploy application...DONE
Uploading bundle for application: 334227...DONE
Deploying bundle: 1353909 for application: 334227 ...
Waiting for task: 523743840
building: Building image: 1366625
building: Building package: rlang
################################ Begin Task Log ################################
################################# End Task Log #################################
Error: Unhandled Exception: Child Task 523743841 failed: Error building image: Error building rlang (0.2.0.9001). R version 3.5.0 currently unavailable
Execution halted
Any ideas how can I get rid of this problem? Is it a bug? I am using the library(shinydashboard)version 0.7.0 based on library(shiny) version 1.0.5 for the dashboard.
Thanks and hope you can help me! :)
I've noticed it is a universal problem. Seems as "It typically takes about a day after the Ubuntu R packages are built and available on CRAN for shinyapps.io 2 to support a new version of R" (from https://community.rstudio.com/t/error-deploying-to-shinyapps-io/7899/5)
It seems to be taking a few days before shiny adapts the new updates. In the meantime, you can upload your shinyapp by changing the version of R you are using back to the last update.
This can be done by going to
Tools>Global Options>R Version:
Press change, and select an earlier version of R. Restart R-studio and upload should work :)

Error deploying shinyapp fatal error: plogr.h: No such file or directory

I'm trying to deploy a Shiny app. When the app is running in RStudio I select the deploy button to republish my updated app.
After a minute or so I receive the following error block in the console:
/usr/local/lib/R/site-library/dplyr/include/dplyr/main.h:11:19: fatal error: plogr.h: No such file or directory
#include <plogr.h>
^
compilation terminated.
In file included from /usr/local/lib/R/site-library/dplyr/include/dplyr.h:4:0,
from rows-data.cpp:2:
/usr/local/lib/R/site-library/dplyr/include/dplyr/main.h:11:19: fatal error: plogr.h: No such file or directory
#include <plogr.h>
^
compilation terminated.
make: *** [rows.o] Error 1
make: *** Waiting for unfinished jobs....
make: *** [rows-data.o] Error 1
ERROR: compilation failed for package ‘purrr’
* removing ‘/usr/local/lib/R/site-library/purrr’
################################# End Task Log #################################
Error: Unhandled Exception: Child Task 492377328 failed: Error building image: Error building purrr (0.2.2). Build exited with non-zero status: 1
Execution halted
I found this discussion on Google groups. Reading through this discussion I tried to reinstall dplyr with dependencies = T.
Here are the libraries I try to load with my app:
library(tidyverse)
library(shiny)
library(shinydashboard)
library(shinyjs)
library(lubridate)
library(DT)
library(scales)
I also tried to install plogr directly:
> install.packages("plogr.h")
Warning in install.packages :
package ‘plogr.h’ is not available (for R version 3.3.3)
Does anyone have any advice for deploying my Shinyapp based on this info? What should I do to get around this error?
#Doug Fir I also struggled with this but finally got this working.
1) I first also tried with no luck to
install.packages("dplyr", dependencies = TRUE)
2) So I then took a good look at the error messages on Deploy tab in Rstudio and noticed that it was complaining about another package or two. In this case purrr and Rcpp. So I reinstalled these two as well.
so I:
install.packages(c("Rcpp","purrr"))
3) I noticed Shiny was not up to date (1.0.1 not 1.0.5) so I updated that for good measure.
install.packages("shiny")
4) then quit Rstudio and restarted R.
Shiny app with dplyr then finally redeployed. Not sure if this beats your answer, but at least dplyr 0.7.4 worked without needing to downgrade.
I am posting this to provide clues if someone else has this problem.
I downloaded an earlier version of DPLYR (0.5.0 no reason, just randomly chose that version) from here. Doing this seemed to fix everything, I don't know why.

Using rattle library on shinyapps.io

I'm trying to deploy an application on shinyapps.io using rattle for decision tree visualisation. Deploying on shinyapps server fails showing this:
Error: Unhandled Exception: Child Task ######### failed: Error building image: Error building RGtk2 (2.20.31). Build exited with non-zero status: 1
Does anyone have a solution for installing RGtk2 on shinyapps?
Well, it seems to be impossible.
The only solution i found was to use prp library which seems to be a good alternative.

Resources