Open englianhu opened 8 years ago
Had a similar issue. Any clue?
I too am experiencing a similar issue.
Here is my code:
devtools::install_github("rstudio/leaflet")
devtools::install_github("ramnathv/rCharts")
install.packages( c( "ggthemes", "shiny", "shinydashboard", "geojsonio"
, "magrittr", "scales", "htmltools", "htmlwidgets", "DT"
, "dplyr", "stringr", "stringi", "MatchIt", "plotly", "censusapi"
, "ggplot2", "igraph", "networkD3", "pander"
) )
library( shiny )
shiny::runGitHub("USAspendingexplorer/USAspending-explorer")
My error message is as follows:
Downloading https://github.com/USAspendingexplorer/USAspending-explorer/archive/master.tar.gz
Error in seq_len(ns) : argument must be coercible to non-negative integer
In addition: Warning message:
In max(which(block[1:100] > 0)) :
no non-missing arguments to max; returning -Inf
This is my version of RStudio:
R version 3.4.0 (2017-04-21)
Platform: x86_64-apple-darwin15.6.0 (64-bit)
Running under: OS X El Capitan 10.11.6
Matrix products: default
BLAS: /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib
LAPACK: /Library/Frameworks/R.framework/Versions/3.4/Resources/lib/libRlapack.dylib
locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] shiny_1.0.3
loaded via a namespace (and not attached):
[1] compiler_3.4.0 R6_2.2.1 htmltools_0.3.6 tools_3.4.0 Rcpp_0.12.11
[6] digest_0.6.12 xtable_1.8-2 httpuv_1.3.3 mime_0.5
Thank you for your time!
UPDATE: @englianhu @OmaymaS
My colleague Stephanie Wilcoxen (https://github.com/swilcoxen) figured out a solution!
When running shiny::runGitHub
, the downloading url reads:
https://github.com/USAspendingexplorer/USAspending-explorer/archive/master.tar.gz
By simply copying that character string and replacing it with the ".../master.zip" extension, the following lines of code work :
devtools::install_github("rstudio/leaflet")
devtools::install_github("ramnathv/rCharts")
install.packages( c( "ggthemes", "shiny", "shinydashboard", "geojsonio"
, "magrittr", "scales", "htmltools", "htmlwidgets", "DT"
, "dplyr", "stringr", "stringi", "MatchIt", "plotly", "censusapi"
, "ggplot2", "igraph", "networkD3", "pander"
) )
library( shiny )
shiny::runUrl("https://github.com/USAspendingexplorer/USAspending-explorer/archive/master.zip")
Notice that the function shiny::runUrl
was used in lieu of shiny::runGitHub
.
Happy coding!
I tried to refer to http://shiny.rstudio.com/tutorial/lesson7/ and apply
shiny::runGitHub()
but face error. And then I tried to refer below sample to upload a copied set of ui and server files to main repo but doesn't help. Kindly assist? https://github.com/rstudio/shiny_example