Skip to content

quarto_preview could return serve_url #233

@cwickham

Description

@cwickham

Unlike running quarto preview on the Terminal, quarto_preview() gives no information about where the preview is running.
Perhaps run_serve_daemon could:

  • compute serve_url earlier
    serve_url <- quarto[[url_key]] %||% paste0("http://localhost:", port)
  • include serve_url in the message that indicates the server is running:

    quarto-r/R/daemon.R

    Lines 121 to 122 in 60d23e4

    # indicate server is running
    cat(paste0("Stop the preview with quarto_", command, "_stop()"))
  • return serve_url invisibly so that quarto_preview() could also return it invisibly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions