ThinkR-open / ThinkR-open/squash

bug: squash::compile_qmd_course delete files that shouldn't be deleted

Open
#16 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
R
Stars
9
Forks
0
PR merge metrics
No merged PRs in 30d

Description

Description

Given the following _quarto.yml :

project:
  pre-render:
    - touch coucou.csv

coucou.csv is created by the quarto rendering, but suppressed on exit

for (i in 1:5){
  write(file = sprintf("test%s.qmd", i),
        sprintf("---
title: 'test%s'
---

## Quarto is cool", i)
  )
}

list.files(pattern = "\\.qmd$", full.names = TRUE, recursive = TRUE) |>
  squash::compile_qmd_course(
    output_dir = "mycoursehere",
    output_html = "complete_course.html"
  )

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the issue with the shown quarto.yml and the squash::compile_qmd_course call, focusing on the cleanup performed after Quarto rendering. Check which generated files are selected for deletion and why coucou.csv is included. Done means compile_qmd_course still handles its temporary files without deleting coucou.csv created by the pre-render hook.

Written by the indexing model from the issue text.

Assessment

Tech stack
r
Domain
build-system
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.