Closed seanhardison1 closed 4 years ago
You can retry after installing yourself locally, on your computer, the package from Github:
remotes::install_github("jpshanno/tydygraphs")
If you send the app on shinyapps.io using the blue button from the app.R
file created by golem::add_shinyappsio_file()
, this should work. It will look at which packages and which versions you installed on your computer.
If you installed this package locally, after a git pull
for instance, this won't work because Rstudio sees the source as coming from your computer, and not from Github. Which is why I ask you to directly install from Github locally.
Thanks @statnmap. Do you know of anyway to check how Rstudio identifies where a package is coming from?
I reinstalled tydygraphs
and sent the app to shinyapps.io using apps.R
generated from golem::add_shinyappsio_file()
without any luck. Deleting and recloning the repo and repeating the above steps didn't work either.
Can you share the log file to see exactly the error ?
Sure.
The app opens as expected, but gives the error when rendering the tydygraph
. Each new error above is created after making a selection in a dropdown menu to update the figure.
Hey,
I think the issue might be that you didn't specify the package in the Import
also.
When adding a remote dep, you should create a Remotes
entry in the DESCRIPTION
+ add the package inside the Imports
.
A shorthand for doing it is to use usethis::use_dev_package
, that will plug the two at the correct location inside your DESCRIPTION.
That solved it!! Thank you @statnmap and @ColinFay
Ah, I made the PR before I saw your comment! Feel free to close it
Hi all,
My app requires the import of a package hosted on github to run, which I've included in my DESCRIPTION as follows:
However, when sending the app to shinyapps.io, the
tydygraphs
package is not installed and so the app fails. The app in question can be found here. Am I specifyingRemotes:
incorrectly?The output of golem::add_dockerfile() also seems to ignore the remote package. Any ideas?