Skip to content

render quarto in R not generate the title page #210

@caocloud

Description

@caocloud

Hi,

I am writing a code to generate a document to pdf using Qarto- R with the set up of title page image.

YAML format is below:


---
format: 
  titlepage-pdf:
    titlepage-bg-image: "logo4.png"
    titlepage-theme:
      bg-image-size: "1.8\\textwidth"
      bg-image-left: "0\\paperwidth"
      documentclass: article
---
```{r}
for ( i in 1: 100){
quarto_render(
    input= "quarto3.qmd",
    output_format = "pdf",execute = TRUE,
    output_file =  stringr::str_glue("{Filename[i]}.pdf"),
    execute_params = list(ID = ID[i],RegionID=2))
}
```

So, I have created a file called "qarto3.qmd" with the YAML at the top. when I render the report by click "Render" button. Everything is fine. The document can be generated with the title page (the image need to cover all the first page, not just as in the middle of the page).

However, because I have multiple documents to run with the different params. In another file, I have used quarto_render. to run the code that can generate multiple documents. It did generate without any issues except for the title page.

My current environment is

"[>] Checking versions of quarto binary dependencies...
Pandoc version 3.1.1: OK
Dart Sass version 1.55.0: OK
[>] Checking versions of quarto dependencies......OK
[>] Checking Quarto installation......OK
Version: 1.3.433
Path: C:\Program Files\RStudio\resources\app\bin\quarto\bin
CodePage: 1252

[>] Checking basic markdown render....OK

[>] Checking Python 3 installation....(None)

  Unable to locate an installed version of Python 3.
  Install Python 3 from https://www.python.org/downloads/

[>] Checking R installation...........OK
Version: 4.4.0
Path: C:/PROGRA1/R/R-441.0
LibPaths:
- C:/Program Files/R/R-4.4.0/library
knitr: 1.48
rmarkdown: 2.28

[>] Checking Knitr engine render......OK"

Can you please help?

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    need-reproIssue still need to be reproduced

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions