I want to publish a shiny app. Therefore I am using the rsconnect package:
I do the following:
rsconnect::setAccountInfo(name='my_name',
token='my_token',
secret='my_secret_token')
setwd("yourwd")
library(rsconnect)
deployApp()
This however gives my the following error:
Error: Unhandled Exception: Child Task 502660937 failed: Error building image: Error fetching shiny (1.0.5.9000) source. <CRANPackageSource repo='http://cran.rstudio.org'> unable to satisfy package: shiny (1.0.5.9000)
In addition: Warning message:
In FUN(X[[i]], ...) :
Failed to infer source for package 'shiny'; using latest available version on CRAN instead
Any thoughts on what goes wrong here?
Related
I'm attempting to deploy my shiny app to shinyapps.io but I'm getting a build error for gWidgetstcltk (0.0-55). gWidgets is a dependency for one of the packages I use in my app. However, I only use a few functions from this package that don't require gWidgets.
I tried deploying on Windows and Ubuntu with no success. I tried installing TK8.5 (required for gWidgetstcltk) but this did not help any. Ideally if there was a way I can force the app to build without this dependency the app should still work. Alternatively, is there a way I could remove this dependency from the package itself?
Error message:
Warning: no DISPLAY variable so Tk is not available
Error in structure(.External(.C_dotTclObjv, objv), class = "tclObj") :
[tcl] invalid command name "font".
Error : unable to load R code in package ‘gWidgetstcltk’
ERROR: lazy loading failed for package ‘gWidgetstcltk’
* removing ‘/opt/R/3.4.4/lib/R/library/gWidgetstcltk’
################################# End Task Log #################################
Error: Unhandled Exception: Child Task 643000037 failed: Error building image: Error building gWidgetstcltk (0.0-55). Build exited with non-zero status: 1
This is the error I get.
c("Loading required package: -", "Loading required package: shiny", "Loading required package: incubator")
Failed with error: ‘'package' must be of length 1’
In addition: Warning message:
In if (!loaded) { :
the condition has length > 1 and only the first element will be used
Error in parse_repo_spec(repo) :
Invalid git repo specification: 'shiny-incubator'
Im suppose to load/ open an R file but need to install all the packages first. The problem is that this error doesn't let me open the R file.
I've got a server running RStudio, and recently another user updated what version of gcc was on it for another project. I attempted to install Rcpp, and get the following error:
Error: package or namespace load failed for ‘Rcpp’ in dyn.load(file,
DLLpath = DLLpath, ...): unable to load shared object
'/home/username/R/x86_64-redhat-linux-gnu-library/3.5/Rcpp/libs/Rcpp.so':
/lib64/libstdc++.so.6: version `GLIBCXX_3.4.20' not found (required by
/home/username/R/x86_64-redhat-linux-gnu-library/3.5/Rcpp/libs/Rcpp.so)
Error: loading failed Execution halted ERROR: loading failed
Oddly, this doesn't occur when using R from the command line, which makes me think that RStudio Server is having trouble finding GLIBCXX_3.4.20, rather than it being genuinely missing.
Does anyone know how to sort this error out?
I am suddenly getting the following error when trying to start a shiny App from within RStudio:
Error : .onLoad failed in loadNamespace() for 'htmltools', details:
call: get(genname, envir = envir)
error: object 'knit_print' not found
In addition: Warning message:
package ‘shiny’ was built under R version 3.1.2
Show Traceback
Rerun with Debug
Error: package or namespace load failed for ‘shiny’
I tried to reinstall htmltool but it does not fix the problem.
Can anyone help?
I'm trying to set up MPI with DeinoMPI on Windows. I've installed DeinoMPI and have my cluster set up there, but when I run library(Rmpi) after starting Rgui.exe through the cluster I get the following error:
> library(Rmpi)
Error : .onLoad failed in loadNamespace() for 'Rmpi', details:
call: inDL(x, as.logical(local), as.logical(now), ...)
error: unable to load shared object 'D:/Programs/R-3.1.0/library/Rmpi/libs/x64/Rmpi.dll':
LoadLibrary failure: The specified module could not be found.
In addition: Warning message:
package ‘Rmpi’ was built under R version 3.1.1
Error: package or namespace load failed for ‘Rmpi’
Looking at that directory, Rmpi.dll is present in the directory and has read/write access. Anyone have any ideas why it says 'the specified module could not be found'? Or is there some additional config necessary perhaps?
Additionally, if I run Rgui.exe outside of the DeinoMPI cluster and run library(Rmpi), I receive the following pop-up: