Problem deploying app to shinyapps.io due to colorspace 1.4-2

My app works fine on Windows 10 desktop. Why I try to push it to shinyapps.io I get this error, seems to be caused by colorspace 1.4-2 not being available. I don't load colorspace but I guess it's a dependency of one of my packages (listed below)? How do I workaround this? Thanks!

Preparing to deploy document...DONE
Uploading bundle for document: 937905...Detecting system locale ... en_US
DONE
Deploying bundle: 3549698 for document: 937905 ...
Waiting for task: 780207682
  building: Processing bundle: 3549698
  building: Parsing manifest
  building: Building image: 3969730
  building: Fetching packages
  error: Building package: colorspace
################################ Begin Task Log ################################ 
################################# End Task Log ################################# 
Error: Unhandled Exception: Child Task 780207684 failed: Error building image: Error fetching colorspace (1.4-2) source. <CRANPackageSource repo='http://cran.rstudio.org'> unable to satisfy package: colorspace (1.4-2)
Execution halted

Packages my app uses:

library(shiny)
library(shinyjs) # delay render
library(shinyBS) # tipify
library(plotly)
library(dplyr)
library(DT) # replaces functions from library(shiny)
library(magrittr)
library(stringr)
library(lubridate)
library(purrr)
library(rdrop2)

Solved. I had to install an older version of colorspace, that was on CRAN:

require(devtools)
install_version("colorspace", version = "1.4.1", repos = "http://cran.us.r-project.org")

I have the same problem with 'rpanel', tried both the latest version (1.1-4) and the older ones available on CRAN (https://cran.r-project.org/src/contrib/Archive/rpanel/), but it didn't work. Is there a way to know which package versions are available for shinyapps.io enviroment?

There's also an option to turn off package caching on shinyapps.io that might help. Choose the app then go to Application|Settings|Advanced, it's at the bottom.

If you download your app Bundle from shinyapps.io to your PC it will tell include the package list. Choose the app then Overview|Bundle [Download]. It saved as a tar file for me. Using 7zip I could open it, you will see the app files and manifest.json, which is a text file that lists also the package information.

Tried disabling cache, and even deploying the app from scratch, all to no avail.

I do not load rpanel explicitly, I guess it is required by some of the other packages, I will see if I can live without it, but other than that, I haven't a clue as to what more to try...

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.