vscode-R
vscode-R copied to clipboard
R Markdown: New Draft` does not work for some templates
CC @renkun-ken
I've found that R Markdown: New Draft
does not work for some templates.
Reprex
-
install.packages("ghclass")
- Launch
R Markdown: New Draft
- Type
ghclass
- See if either "Reviewer feedback form, {ghclass}" or "Author rating form, {ghclass}" works: cannot make any draft out of them
We use rmarkdown::draft(...)
to create new drafts.
In this case, it looks like ghclass
does not comply with rmarkdown template.
> rmarkdown::draft(file = "test-ghclass.Rmd", template = "review", package = "ghclass")
Error in rmarkdown::draft(file = "test-ghclass.Rmd", template = "review", :
template.yaml must contain name and description fields
Backtrace:
1: stop("template.yaml must contain name and description fields")
2: rmarkdown::draft(file = "test-ghclass.Rmd", template = "review",
I tried adding a description
field to template.yaml
and it works.
In RStudio, looks like it does not rely on rmarkdown::draft()
but directly uses skeleton/skeleton.Rmd
instead.
Aw, I see. Thank you so much for investigating this issue, @renkun-ken! I have seen that you opened an issue in the ghclass repo. Thank you very much!
This issue is stale because it has been open for 365 days with no activity.
unstale
This issue is stale because it has been open for 365 days with no activity.
This issue was closed because it has been inactive for 14 days since being marked as stale.