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

Include interactive maps #5

Open
sebastian-loos opened this issue Jul 26, 2023 · 1 comment
Open

Include interactive maps #5

sebastian-loos opened this issue Jul 26, 2023 · 1 comment

Comments

@sebastian-loos
Copy link

Hey @larnsce

Just for your information... This is the box that should appear when you hover over the map image.
image

I defined the box in the figure attributes. It appears when I knit the example file but not when I build the site using pkgdown (also not locally). So there might also be a problem...

I got the idea from the get started article of the tmap package documentation. I Just thought that if not even they include the interactive maps, it's just not possible right now. And by inserting the screenshots inlcuding the box, the cross references could still be used.

In order to include the interactive maps I would just sacrifice the cross references and:

  • change the output back to default (delete these lines)
  • change eval to true for the map- code junks
  • delete screenshots
  • and replace cross references to something like "figure below".

There is no need to actually change it I just wanted to give you all the information I gathered so far.

I also add the links to the cross-reference discussions you send to the element chat:
See a related discussion here: r-lib/pkgdown#323
Seems to work for vignettes: r-lib/pkgdown#2201

@larnsce
Copy link

larnsce commented Jul 26, 2023

Thanks for documenting it, @sebastian-loos. It's a bit frustrating to be limited by the capabilities of pkgdown when it comes to writing the .Rmd files.

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

No branches or pull requests

2 participants