aoles / EBImage

:art: Image processing toolbox for R
71 stars 28 forks source link

Deploy EBImage to Shinyapps.io #22

Closed Kiwibp closed 7 years ago

Kiwibp commented 7 years ago

What is the proper way for deploy EBImage to shinyapps.io? Currently, the app works fine locally, and I have the following code at the top of my global.R script: source("https://bioconductor.org/biocLite.R") biocLite("EBImage") library(EBImage)

I thought that would suffice after reading this link, but I'm still having an issue since the app is trying to write to my local directory, and I'm not sure where it should write to when its deployed to shinyapps.io. https://github.com/rstudio/rsconnect/issues/88

Shinyapps.io Log: Bioconductor version 3.5 (BiocInstaller 1.26.0), ?biocLite for help BioC_mirror: https://bioconductor.org Using Bioconductor 3.5 (BiocInstaller 1.26.0), R 3.4.0 (2017-04-21). Installing package(s) ‘EBImage’ Error in value[3L] : unable to install packages Warning in install.packages(pkgs = doing, lib = lib, ...) : 'lib = "/usr/local/lib/R/site-library"' is not writable

I am using EBImage because I needed to use geom_image to display images as my points in a scatterplot. See link below and scroll to the comment at the end for reference. https://stackoverflow.com/questions/2181902/how-to-use-an-image-as-a-point-in-ggplot

aoles commented 7 years ago

Package dependencies on shinyapps.io are resolved on deployment, and all the necessary packages are automatically installed. Therefore there is no need to install EBImage manually from your script. Things should work just fine once you remove the call to biocLite.

Kiwibp commented 7 years ago

Thank you. It's working after I deploy it now.