Shiny-logs-error-there is no package called 'tidyverse' - r

I used shiny output in rmarkdown to create an interactive document and was able to see local html file but when trying to publish it to shinyapps.io, I get an error message:
Error: An error has occurred. Check your logs or contact the app author for clarification.
I checked the logs in the shinyapps.io, I see the following error:
Warning: there is no package called "tidyverse"
Please help me with resolving this issue so that I can create an interactive document with shiny+rmarkdown
Thanks,
Venkat

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

Vignette fails to be built by pkgdown

I have a R package that I am trying to setup pkgdown for. I'm following the instructions here, and am running build_site() to generate the docs directory. When running this command, I get the error
Quitting from lines 28-29 (Data-Model.Rmd)
Error : package or namespace load failed for 'dm':
.onLoad failed in loadNamespace() for 'dm', details:
call: register_pkgdown_methods()
error: rlang::is_installed(c("DiagrammeR", "DiagrammeRsvg")) is not TRUE
Showing that the build is failing when trying to render one of the vignettes. However, if I just try to knit this vignette in a fresh interactive session, it knits fine.
I have tried including DiagrammeR and DiagrammeRsvg in Depends, Imports, or Suggests, and it still fails with the same error.
Any idea what I can do to fix this? The vignette is located on my github here. I understand this is not the ideal way to share an example, but it can repro'd by cloning the repo and running pkgdown::build_site()
The error is fairly informative; it tells you that
rlang::is_installed(c("DiagrammeR", "DiagrammeRsvg"))
is not TRUE. I suspect if you run that line it will in fact return FALSE. I installed DiagrammeRsvg and the vignette built successfully.
I am not entirely sure why building the vignette with pkgdown requires SVG export of your diagrams, but knitting them doesn't. Hopefully that solves the issue, though.

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 shiny app with package self written

First I know there is a question which looks like to mine here :
Deploying a Shiny app using a self-written package
But there is not an answer at my question, so I ask again with my specificity.
I made a package what I want use in a shiny app. On the computer it's working, but when I want to upload the app on shinyapps.io to share it, the uploading doesn't work... I tried to put the package in directory of the shiny app and to upload it too, but the same result results.
My problem is to upload the shiny app with my package.
When I upload my shinyapps with my package I get this :
devtools::install_github("zertupo/NxT")
library(NxT)
Erreur : Unable to retrieve package records for the following
packages:
- "NxT" De plus : Warning message: In FUN(X[[i]], ...) : Failed to infer source for package 'NxT'; using latest available version on CRAN
instead
With only the devtools without the call to package :
devtools::install_github("zertupo/NxT")
I get this on shinyapps.io :
An error has occurred. Check your logs or contact the app author for
clarification.
and the logs give me :
Installation failed: Does not appear to be an R package (no DESCRIPTION)
2018-05-15T14:49:06.583190+00:00 shinyapps[343120]: Warning: Error in next_word: could not find function "next_word"
It's well a package, it works on my computer and he has a DESCRIPTION file...And so without the call to package, it doesn't find the function... I don't know how to proceed to make it work, I searched about the description file but it is in and it is good.

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

Resources