Using rattle library on shinyapps.io - r

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.

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

Where to get libgrpc_csharp_ext.arm64.dylib?

When I try to run app with Google.Ads.GoogleAds nuget package on MacOS with M1 silicon I get the following error :
Unhandled exception. System.IO.FileNotFoundException: Error loading
native library. Not found in any of the possible locations: .../libgrpc_csharp_ext.arm64.dylib
Cannot really find where to obtain libgrpc_csharp_ext.arm64.dylib or where can I find source for it and how to compile.
You can try to use prebuilt version of the native .dylib for Apple M1 CPUs:
https://github.com/einari/Grpc.Core.M1
https://www.nuget.org/packages/Contrib.Grpc.Core.M1/

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.

Deploy Rshiny App :Error Building Hunspell(2.7)

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

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.

Resources