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

Support leaflet in revealjs presentations #50

Closed
kevinykuo opened this issue Apr 19, 2017 · 5 comments
Closed

Support leaflet in revealjs presentations #50

kevinykuo opened this issue Apr 19, 2017 · 5 comments
Labels
widgets widgets support

Comments

@kevinykuo
Copy link

http://stackoverflow.com/questions/35894401/how-to-include-leaflet-for-r-output-into-rmarkdown-presentation

Is this something we can fix on our end or is it a problem upstream with the javascript libraries?

I'm having to fall back to ioslides/slidify just because I'm unable to display a map...

Related: #11

@jjallaire
Copy link
Member

I don't know enough about leaflet to say. When I try the simple repro in the SO article I get a map but a bunch of 404s because it appears to be attempting to load tiles from the local filesystem.

@bhaskarvk or @jcheng5 Any idea here?

@bhaskarvk
Copy link

@jjallaire The issue you're seeing has been fixed in GH master, but CRAN ver. still has that problem.

@bhaskarvk
Copy link

@kevinykuo Try the widgetframe package for separating widget deps from the document deps.

@jjallaire
Copy link
Member

Thanks @bhaskarvk!

@apreshill apreshill added the widgets widgets support label Jul 26, 2021
@cderv
Copy link
Collaborator

cderv commented Sep 17, 2021

The example from the SO post is now working.

---
title: "Rmarkdown Presentation including Leaflet"
output: 
  revealjs::revealjs_presentation
---

Show "Leaflet for R" within Rmarkdown presentation: fails.

```{r}
library(leaflet)
leaflet() %>%
  addTiles %>% # Add default OpenStreetMap map tiles
  setView(lng = 5.0, lat = 51.0, zoom = 6)
```

If there are other issues with leaflet please open a new issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
widgets widgets support
Projects
None yet
Development

No branches or pull requests

5 participants