-
Notifications
You must be signed in to change notification settings - Fork 16
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
use_busy_gif() not displaying gifs on local disc #14
Comments
Hello, You have to put the gif inside a folder named
Then you can use in your UI: use_busy_gif(src = "data/banana.gif", height = 70, width = 70) The Victor |
Hey Victor, thanks for the response. I did see that in the documentation, however, it does say "Path to the GIF, an URL or a file in www/ folder", which would imply that the Edit: Also I just tried using adding the directory structure as you laid out (only difference being I use a single |
Yes I wrote and try that function ;)
You can try including an image in your application with Here's a note from Shiny documentation:
Read more here : https://shiny.rstudio.com/articles/css.html and here : https://shiny.rstudio.com/articles/packaging-javascript.html
|
EDIT: Okay so I retried this again and got different behaviour..
We use a slightly different process to launching our apps, with a call to It seems in our case (which is very niche) we use I'm not sure if you were aware of this, or understand what could be going on, I'll concede that I'm not knowledgeable enough with |
Hi,
I think I have discovered a bug with the package. I am aiming to use a gif stored in a local directory in an app via a path-string:
use_busy_gif(src = "path/to/gif.gif")
.My code works as expected using a url to a gif hosted online, or alternatively by using the
logo_silex()
function (which produces a path-string to gif on your file system) to read the silex logo from package files.So it's rather confusing me that I can not display any other gif that I have saved locally to my machine. Here's a MWE of an app where I can not produce the behaviour expected:
Would anyone be able to confirm or deny that they can get a local gif to display using this function?
Something worth noting is that it does seem like something is displayed when this is run. If you play with the
position
argument to"top_left"
you can see it interfering with the shinyUI buttons. However, at the very least it's not displaying properly.I am building the app on an RStudio server, but have also tried and had the same issues locally. Here's my session info:
The text was updated successfully, but these errors were encountered: