Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

quarto::quarto_use_template raises error that quarto use template doesn't #229

Closed
JosephBARBIERDARNAL opened this issue Mar 21, 2025 · 2 comments

Comments

@JosephBARBIERDARNAL
Copy link

JosephBARBIERDARNAL commented Mar 21, 2025

Hi!

I have a local template called memo in the templates/memo dir.

  • If I run quarto use template templates/memo everything works perfectly (indicating that a priori there is no issue with the template itself).
  • If I run quarto::quarto_use_template("template/memo"), I get:
Error in `if (approval) ...`:
! argument is of length zero

But more generally, running quarto::quarto_use_template() returns the previous error if the input is wrong (?), no matter what kind of error it is (is the github repo not existing? is the path wrong? is something wrong with the extension itself? And so on).

quarto version: 1.6.42
OS: macos sequoia

@cderv
Copy link
Collaborator

cderv commented Mar 24, 2025

This is duplicate of

It is fixed in dev version, not yet on CRAN.

You can install from github repo

pak::pak("quarto-dev/quarto-r")

Or using a built version from r-universe

install.packages('quarto', repos = c('https://quarto-dev.r-universe.dev', 'https://cloud.r-project.org'))

@cderv cderv closed this as completed Mar 24, 2025
@JosephBARBIERDARNAL
Copy link
Author

great thanks, I'll install the dev version then

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants