Closed jimjam-slam closed 10 months ago
Thanks for the issue. I can't reproduce it. quarto preview --no-browser --port 8864
produces
Preparing to preview
[1/2] index.qmd
[2/2] lessons/scraping-cards/index.qmd
processing file: index.qmd
|............. | 29% (download-census-data)System has not been booted with systemd as init system (PID 1). Can't operate.
Failed to connect to bus: Host is down
trying URL 'https://www.abs.gov.au/census/find-census-data/datapacks/download/2021_GCP_SAL_for_VIC_short-header.zip'
Content type 'application/zip' length 23480366 bytes (22.4 MB)
==================================================
downloaded 22.4 MB
output file: index.knit.md
Watching files for changes
Browse at http://localhost:8864/
GET: /
/styles.css (404: Not Found)
/styles.css (404: Not Found)
GET: /lessons/scraping-cards/
/lessons/scraping-cards/styles.css (404: Not Found)
/lessons/scraping-cards/styles.css (404: Not Found)
I'm running Ubuntu 22.04 LTS. quarto check
output is
[✓] Checking versions of quarto binary dependencies...
Pandoc version 3.1.2: OK
Dart Sass version 1.55.0: OK
Deno version 1.33.4: OK
[✓] Checking versions of quarto dependencies......OK
[✓] Checking Quarto installation......OK
Version: 1.4.330
Path: /opt/quarto/bin
[✓] Checking tools....................OK
TinyTeX: (not installed)
Chromium: (not installed)
[✓] Checking LaTeX....................OK
Using: Installation From Path
Path: /usr/bin
Version: 2021
[✓] Checking basic markdown render....OK
[✓] Checking Python 3 installation....OK
Version: 3.10.6
Path: /usr/bin/python3
Jupyter: 5.2.0
Kernels: python3
[✓] Checking Jupyter engine render....OK
[✓] Checking R installation...........OK
Version: 4.2.2
Path: /usr/lib/R
LibPaths:
- /home/raniere/R/x86_64-pc-linux-gnu-library/4.2
- /usr/local/lib/R/site-library
- /usr/lib/R/site-library
- /usr/lib/R/library
knitr: 1.42
rmarkdown: 2.20
[✓] Checking Knitr engine render......OK
I wasn't able to reproduce this either using the latest pre-release build (it took a bit given the size of the document, but ultimately previewed just fine). I'll close this for now, please feel free to re-open / reply if this is something we should look into further.
Bug description
In https://github.com/360-info/training-datajournalism (rendered site here), I've prepared a Quarto example website with a page,
lessons/scraping-cards/index.qmd
. That file (ab)uses Quarto's custom listing feature to:(a) Tidy up and join some data frames in R and output it as a YAML array (all on render in a series of R chunks) in
suburbs.yml
(b) Render a listing driven bysuburbs.yml
The idea here is to simulate the kinds of data dashboards you often see in the public space (the exercise is to scrape this back into a spreadsheet with Google Sheets).
However, at the moment I've added a filter to restrict the data to the 100 most populous suburbs (down from about 2500 suburbs).
The full dataset works with other web servers (eg. if I
quarto render; cd _site; python3 -m http.server
), butquarto preview
hangs on the page when I try to load it, saying that it's readingsuburbs.yml
.(I'm not saying that this is a smart use of Quarto listings at this scale—any real production system would likely have server-side pagination, and the HTML output with the full dataset is several megabytes—but since I hit a problem that seems to be unique to
quarto preview
, I wanted to document it!)Steps to reproduce
quarto render
andquarto preview
; navigate tolessons/scraping-cards
; verify it worksslice_max
filter from the R chunk before it writes out tosuburbs.yml
quarto render
andquarto preview
; navigate tolessons/scraping-cards
; verify it no longer works and that it reports trying to loadsuburbs.yml
cd _site; python3 -m http.server
(or another preview server); navigate tolessons/scraping-cards
; verify it works with this serverExpected behavior
Expect the previewed page to load.
Actual behavior
Blank page, with a render message up the top of the browser saying that it's trying to load
suburbs.yml
.Your environment
Quarto check output