Open cderv opened 2 months ago
@idavydov usually we expect some reproducible example to help understand encountered issue.
Please can you share more about your context ?
report.qmd
part of a project for example ? Also as much details as possible is welcome so that the minimum interpretation from me is required. This helps quickly solve problem.
Thank you !
thanks, @cderv for creating a new issue. here's the minimal reproducible example which I found so far.
_quarto.yml
project:
type: default
format:
html:
toc: true
toc-depth: 2
number-sections: true
editor: visual
execute:
cache: false
report.qmd
---
format:
html
---
## hello
to reproduce the issue one could run:
> quarto::quarto_preview("report.qmd")
pandoc
to: html
output-file: report.html
standalone: true
section-divs: true
html-math-method: mathjax
wrap: none
default-image-extension: png
toc: true
toc-depth: 2
number-sections: true
metadata
document-css: false
link-citations: true
date-format: long
lang: en
editor: visual
Output created: report.html
Watching files for changes
Browse at http://localhost:7022/report.html
Stop the preview with quarto_preview_stop()> GET: / (404: Not Found)
quarto version: 1.5.57
I can't reproduce right now
> quarto::quarto_preview("report.qmd")
pandoc
to: html
output-file: report.html
standalone: true
section-divs: true
html-math-method: mathjax
wrap: none
default-image-extension: png
toc: true
toc-depth: 2
number-sections: true
metadata
document-css: false
link-citations: true
date-format: long
lang: en
editor: visual
Output created: report.html
Watching files for changes
Browse at http://localhost:5156/report.html
Stop the preview with quarto_preview_stop()
It opens correctly in IDE.
This is also with CRAN version 1.4.4 🤔
So I am a bit puzzled
Hi @cderv , just to double check, there are both files (qmd and yml) in the directory you are running, correct?
I tried from two locations: locally on my mac and on linux via ssh. Same results.
Maybe it has something to do with the IDE? I got these results just by calling the R
REPL.
Maybe it has something to do with the IDE? I got these results just by calling the R REPL.
I'll try this ! I was assuming work RStudio IDE.
I still can't reproduce. I opened my Terminal, ran R to get the R console and then
> packageVersion("quarto")
[1] '1.4.4'
> quarto::quarto_preview("report.qmd")
pandoc
to: html
output-file: report.html
standalone: true
section-divs: true
html-math-method: mathjax
wrap: none
default-image-extension: png
metadata
document-css: false
link-citations: true
date-format: long
lang: en
title: Report
Output created: report.html
Watching files for changes
Browse at http://localhost:4665/report.html
And it opens the browser in the correct window
Same in R Gui
just so this doesn't get lost: the bug only reproduces when there's report.qmd
as well as _quarto.yml
in the directory. with report.qmd
alone it works fine.
I just managed to reproduce this in a docker image. I created the two files in ~/x/
, installed quarto
from CRAN and ran:
> options(browser=function(url) cat(paste0("\nurl: ", url, "\n")))
> quarto::quarto_preview("report.qmd")
pandoc
to: html
output-file: report.html
standalone: true
section-divs: true
html-math-method: mathjax
wrap: none
default-image-extension: png
toc: true
toc-depth: 2
number-sections: true
metadata
document-css: false
link-citations: true
date-format: long
lang: en
editor: visual
Output created: report.html
Watching files for changes
Browse at http://localhost:5046/report.html
Stop the preview with quarto_preview_stop()
url: http://localhost:5046
> packageVersion("quarto")
[1] ‘1.4.4’
Oh thanks for the docker image ! This will definitely help understand what is happening. I am really puzzled by this !
I'm on quarto 1.4.4 and somehow I am still getting this error: (edit: similar to #167)
Originally posted by @idavydov in https://github.com/quarto-dev/quarto-r/issues/167#issuecomment-2376287393