App won't deploy with GitHub version of a package but works ok with CRAN

26 views
Skip to first unread message

Peter Ellis

unread,
Aug 27, 2015, 3:50:16 PM8/27/15
to ShinyApps Users
Originally I raised this as an issue at https://github.com/mtennekes/treemap/issues/23 but the problem seems to be related to how deployApp() installs packages.  An app using the {treemap} package will deploy ok if the client system has CRAN's version of {treemap}, but not if it has GitHub's.  In the snippet below, the 01_hello app has been modified just by adding the line
library(treemap)


library(shiny)
library
(shinyapps)
library
(devtools)

install
.packages("treemap") # ie from cran
# this works fine:
deployApp
("C:/Users/Peter Ellis/Documents/R/win-library/3.1/shiny/examples/01_hello", account = "ellisp")

install_github
("mtennekes/treemap/pkg") # ie from GitHub, latest built dev version
runApp
("C:/Users/Peter Ellis/Documents/R/win-library/3.1/shiny/examples/01_hello") # still works locally
# but this no longer works:
deployApp
("C:/Users/Peter Ellis/Documents/R/win-library/3.1/shiny/examples/01_hello", account = "ellisp")

Andy Kipp

unread,
Aug 27, 2015, 3:55:51 PM8/27/15
to Peter Ellis, ShinyApps Users
Peter,

Are you seeing a particular error when you try to deploy the github version?
-Andy

--
You received this message because you are subscribed to the Google Groups "ShinyApps Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to shinyapps-use...@googlegroups.com.
To post to this group, send email to shinyap...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/shinyapps-users/86b26e2c-52a7-460d-b0bc-6d3026c02496%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Peter Ellis

unread,
Sep 1, 2015, 3:35:19 PM9/1/15
to ShinyApps Users, peter.el...@gmail.com
Thanks Andy.  The log finishes with this error pasted below.  I've attached a fuller log.

[2015-09-01T19:30:23.817694319+0000] Installing R package: igraph (1.0.1)
* installing to library ‘/usr/local/lib/R/site-library’
* installing ################################### End Log ################################### 
Error: Unhandled Exception: Child Task 75546724 failed: Error building image: Error building treemap (2.3). Build exited with non-zero status: 1
treemap_shinyapps_log.txt
Reply all
Reply to author
Forward
0 new messages