-
Notifications
You must be signed in to change notification settings - Fork 26
Open
Labels
enhancementNew feature or requestNew feature or requestupstreamconcerns an upstream library like quarto or pandocconcerns an upstream library like quarto or pandoc
Description
Hi !
Some info on the code:
- I have a template in
inst/templates/memo
quarto_add_extension
works well- I'm using the dev version
- I don't have a
template.qmd
file at the root of mypackage
This isn't a reprex, let me know if that's needed
> create_memo <- function() {
+ template_path <- system.file("templates/memo", package = "wvc")
+ quarto::quarto_use_template(template_path, no_prompt = TRUE)
+ }
+ create_memo()
ERROR: Unable to install in /Users/josephbarbier/Desktop/wvc as the directory isn't empty.
Stack trace:
at determineDirectory (file:///Applications/quarto/bin/quarto.js:117557:19)
at useTemplate (file:///Applications/quarto/bin/quarto.js:117405:39)
at async Command.actionHandler (file:///Applications/quarto/bin/quarto.js:117392:9)
at async Command.execute (file:///Applications/quarto/bin/quarto.js:8111:13)
at async Command.parseCommand (file:///Applications/quarto/bin/quarto.js:8001:20)
at async quarto (file:///Applications/quarto/bin/quarto.js:126627:9)
at async file:///Applications/quarto/bin/quarto.js:126654:9
at async mainRunner (file:///Applications/quarto/bin/quarto.js:126519:9)
at async file:///Applications/quarto/bin/quarto.js:126645:5
I'm sure I'm doing something wrong, but I don't know how I'm supposed to use the quarto_use_template
function? A few points:
- how do I run the function in a completely empty directory? Like, I need at least
.R
file anyway to run the code? - Is there any way around this and say ‘create it here instead’?
I really feel like I've missed something because my questions are a bit stupid
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestupstreamconcerns an upstream library like quarto or pandocconcerns an upstream library like quarto or pandoc