Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deploying on shinyapps.io: A package dependency should not be required, yet Shiny asks for it #2527

Closed
adeldaoud opened this issue Jul 16, 2019 · 2 comments
Labels
Needs Repro Must be reproduced by a member of the Shiny team

Comments

@adeldaoud
Copy link

@adeldaoud adeldaoud commented Jul 16, 2019

Hi

I am building a Shiny application based on an unpublished package. I have, therefore, explicitly created stand-alone functions of parts of this unpublished package. Shiny call these functions when needed. On my local machine, Shiny is not calling this unpublished package. I have even uninstalled this package to make sure that Shiny is independently functioning.

Yet, when I deploy this package to shinyapps.io, I face an error about this unpublished package is required.

I suspected that an earlier Shiny deployment of this app might have interfered and that this dependencies is an echo. So I removed that earlier version to make sure that this app is not interfering with the new app. But the same problem persists.

In summary, a package dependency should not be required, yet Shinyapps asks for it.Any idea of what is going on?

Not sure how to write a reproducible example of this particular issue.

(NB: I have posted this question here as well: https://community.rstudio.com/t/deploying-on-shinyapps-io-a-package-dependency-should-not-be-required-yet-shiny-asks-for-it/35517?u=adeldaoud)

@cpsievert
Copy link
Collaborator

@cpsievert cpsievert commented Jul 24, 2019

Does your app contain anything like library(pkgname); require(pkgname); or pkgname:: of the package in question? The mechanism that deploys the app will look for things like this to automatically infer what packages are needed.

@cpsievert cpsievert added the Needs Repro Must be reproduced by a member of the Shiny team label Jul 24, 2019
@adeldaoud
Copy link
Author

@adeldaoud adeldaoud commented Jul 24, 2019

@cpsievert , thanks for the input. No, I am not using pkgname but your input made me think about something else. I do have a "TEMP" folder in the "myapp" folder where I store old functions of which one referred to that unpublished package. Matter solved!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs Repro Must be reproduced by a member of the Shiny team
Projects
None yet
Development

No branches or pull requests

2 participants