Skip to content

quarto inspect and temporary directories #906

Open
@romainfrancois

Description

@romainfrancois

From rstudio/rstudio#11201 (comment)

With this R code:

dir.create(tf <- tempfile()); 
dir.create(file.path(tf, "sub"))

main <- file.path(tf, "main.qmd")
writeLines("---\ntitle: quarto document\n---\n", main)

sub <- file.path(tf, "sub", "sub.qmd")
writeLines("---\ntitle: quarto document\n---\n", sub)

writeLines('project:\n  title: "test"\n', file.path(tf, "_quarto.yml"))

system(paste0("quarto inspect ", tf, "/main.qmd | grep project"))  
system(paste0("quarto inspect ", tf, "/sub/sub.qmd | grep project"))  

getting:

> system(paste0("quarto inspect ", tf, "/main.qmd | grep project"))  
  "project": "../../../private/tmp/RtmpAMjixD/file1842c7157d908"
> system(paste0("quarto inspect ", tf, "/sub/sub.qmd | grep project"))  
  "project": "../../../../private/tmp/RtmpAMjixD/file1842c7157d908"

In rstudio/rstudio#11201 (comment) I worked around it by by using workingDir but I was wondering if this was an issue.

% quarto --version
0.9.415

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions