-
Notifications
You must be signed in to change notification settings - Fork 331
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
html_dependency not found with using mapview in knitr engine document #9058
Comments
Not sure what you mean with "fresh new session". I still get the error after deleting the cache files.
Originally posted by @michelk in #4149 (comment) |
@michelk See this new issue so that we can discuss in a clean thread As I mentioned in #4149 (comment), the issue from #4149 is fixed from third party package. You may encounter another issue - I'll look into it with the new information your provided. Thanks |
Ok I can reproduce now. This is related to caching, and this is not directly related to Quarto. Here is a R Markdown document that will reproduce it too ---
title: Test Document
output: html_document
---
```{r}
library(mapview)
library(plainview)
```
```{r}
knitr::opts_chunk$set(echo = FALSE, warning = FALSE, cache = TRUE)
```
# un
```{r}
mapview(breweries, layer.name = "T1")
```
# dos
```{r}
mapview(breweries, layer.name = "T2")
```
# tres
```{r}
mapview(poppendorf[[5]], legend = TRUE, layer.name = "T3")
```
This is indeed related to #4149 for probably same cause in third party tool, but this time the problems comes from
It uses a file in a temporary folder tied to a R session. This means it can be working when you cache the chunk. This probably comes for mapview and they need to adapt so that cache is supported - or just disallow using the data in a cached chunk They need to fix this so cache is supported - for now your workaround is not to cache the chunk. Also FYI, you should not place Hope this helps ! |
In fact it comes from leafem which is used by mapview https://github.com/r-spatial/leafem/blob/6d6831352038b8f7462ff7afa698050c4e46fb5e/R/utils.R#L65-L80 |
I opened in mapview So I'll close this. Thanks for the report ! |
@cderv Thanks a lot for the investigation. |
@cderv Thanks for coming back to me.
I still have the problem. Here is an example:
I get the follwing error message from
quarto render tt.qmd
R session info
Originally posted by @michelk in #4149 (comment)
The text was updated successfully, but these errors were encountered: