How to host a Shiny app on RS Connect if it depends on a local package?

Hello,

I have a Shiny app (packaged) which uses a package I developed. How can I deploy it on RStudio Connect? The package is not on Github.

I did:

local({
  r <- getOption("repos")
  r["mycompany"] <- "http://rpackages.mycompany.com/"
  options(repos = r)
})

in .Rprofile. But when deploying:

Error in getSourceForPkgRecord(pkgRecord, srcDir(project), availablePackagesSource(repos = repos), : Failed to retrieve package sources for Turb 0.1.6 from CRAN

Why does it look for the source on CRAN?

Ok, this works now, with the above contents of .Rprofile.

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

If you have a query related to it or one of the replies, start a new topic and refer back with a link.