-
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
Quarto Panel Tabset and Wordcloud #5884
Comments
Thanks for the report! Could you format your example as described below, and make it self-contained? Thanks. You can share a Quarto document using the following syntax, i.e., using more backticks than you have in your document (usually four ````qmd
---
title: "Reproducible Quarto Document"
format: html
---
This is a reproducible Quarto document using `format: html`.
It is written in Markdown and contains embedded R code.
When you run the code, it will produce a plot.
```{r}
plot(cars)
```
The end.
```` |
Thankyou for your reply. My quarto file I have linked to opens up a csv file. How do I self contain that here, to make it reproducible? Here it is.
|
The idea was mostly to add the format (such as html) and to format your original post (you can edit it) to ensure the code blocks appear. Are everything in your example (the big one) really needed for us to reproduce? |
Thankyou. Probably only the following might be needed. It does look up csv files that are in the repo.
|
Can you please try to create a smaller file that still causes your problem? That will make it easier for us to track down the issue. |
how about this? the 2016 doesn't plot? as you can see, it was plotting in January. https://racing-focus.netlify.app/data/article_4/article_4.html
|
@racing-focus Thanks. Could you remove evrything that is not relevant, such as the CSS code, all the R packages not used, the YAML options used only for website, etc. See #5884 (comment). Edit: I believe the following is sufficient to reproduce, although I cannot work on this now (maybe @cderv can). ---
format: html
---
```{r}
df <- tibble::tribble(
~tr_name, ~n,
"David", 5,
"John", 62,
"Samantha", 15,
"Rex", 9,
"Jennifer", 7,
)
```
### 2015
```{r}
wordcloud2::wordcloud2(df, size = 0.36)
```
### 2016
```{r}
wordcloud2::wordcloud2(df, size = 0.36)
``` |
Thanks @mcanouil . I believe this is not related to Quarto at all, and an issue maybe with wordcloud itself. I can reproduce this also with rmarkdown (thus without Quarto). There is an error in Browser Console which prevent the htmlwidget wordcloud to load correctly
Related issue I believe It seems an issue with wordcloud.js (Lchiffon/wordcloud2#65 (comment)) This is to solve on the R side. I guess.
I don't explain this though. |
I was able to work on it yesterday. Yes, the wordcloud appears to be the problem. I updated rstudio. Can I ask a question, when I update rstudio, I have to install all packages again? Well I installed all packages, but forgot when I was doing this in January that I had to remove wordcloud and install this version.
Which I have now done. Just to confirm when I update rstudio again, I need to remember this version of wordcloud2 at the same time? Cheers, |
|
thanks, when I say I update rstudio, I updated r and rstudio at the same time. but I get your point. I just need to work out where the package folder is kept.
done. cheers, |
You definitely should never do that. @racing-focus Use |
I am closing to close this since it was confirmed to be a third party bug. |
Just to add to that and explain a bit more. When upgrading to a new minor version (so 4.1.x to 4.2.x), you should indeed reinstall the packages so that they are rebuild with the correct R versions.
You could indeed use renv for project related library and fine-grainded control of versions. Though, if your workflow is more with a global library, you should consider pak https://pak.r-lib.org/ Anyhow, do not hesitate to share questions and experience on https://community.rstudio.com/ for example, you'll find a lot of experienced user there who will have good advice ! |
To note, there is also "r2u" (for Unbuntu) which is the fastest approach to install pre-built binary R packages, especially if you only want the latest version from CRAN, see https://eddelbuettel.github.io/r2u/.
|
thank you all. I just have a pacman load command for the packages I use. but what it won't do is pull the non-cran packages like the wordcloud2 that is on the developers GitHub page. I've just made a not about that. |
Bug description
I produced a quarto file to produce the following in January 2023.
The code can be found at
I had attempted to loop through the tabset, but that failed. So I produced them manually like so.
the main issue I had, when they appear, they appear vertically, but after clicking through the tabsets they appear as they should. I don't know why.
I don't know what version of quarto I was using at the time. I am now using.
the issue I am having is when I render the qmd file, 2015 wordcloud appears, but 2016 and beyond are blank.
Is there a reason why this is happening. I really don't have knowledge about how widgets work. I know it worked repetitively in January, and now I have updated two csv input files for the qmd, it now doesn't work.
Any understanding would be appreciated.
You may be able to reproduce the problem with the GitHub repo I have provided a link to.
Cheers,
Steps to reproduce
No response
Expected behavior
All Wordclouds should appear in tabsets.
Actual behavior
Only one wordcloud appears for the first tabset.
Your environment
RStudio
2023.03.1 Build 446
"Cherry Blossom" Release (6e31ffc3, 2023-05-09) for macOS
Quarto check output
[✓] Checking versions of quarto binary dependencies...
Pandoc version 3.1.1: OK
Dart Sass version 1.55.0: OK
[✓] Checking versions of quarto dependencies......OK
[✓] Checking Quarto installation......OK
Version: 1.3.361
Path: /Applications/quarto/bin
[✓] Checking basic markdown render....OK
[✓] Checking Python 3 installation....OK
Version: 3.9.13
Path: /usr/local/opt/[email protected]/bin/python3.9
Jupyter: (None)
[✓] Checking R installation...........OK
Version: 4.3.0
Path: /Library/Frameworks/R.framework/Resources
LibPaths:
- /Library/Frameworks/R.framework/Versions/4.3-x86_64/Resources/library
knitr: 1.42
rmarkdown: 2.21
[✓] Checking Knitr engine render......OK
The text was updated successfully, but these errors were encountered: